RE: "not handled in user code" dialog
- From: Leslie <mason@xxxxxxxxxxxxxxxx>
- Date: Thu, 27 Jul 2006 11:59:02 -0700
Jeffery,
I tried the solution you suggested which was:
To disable this default webevent for unhandled exception, you may add
the following element to the web.config under <system.web>:
<healthMonitoring enabled="false"></healthMonitoring>
and that seemed to work fine. However that does seem to shut off all health
monitoring which is not necessarily a goog thing.
I have discovered another solution which is to use the
Server.ClearError();
function.
When I use this function instead of setting healthMonitoring to false, no
3005 error is recorded in the Application Log. This gives me greater
granularity. On exceptions that I have handled I can call
Server.ClearError(). On exceptions that I missed, I will get an App Log
entry. This seems to be the best of both worlds.
Thanks for your help,
Leslie
""Jeffrey Tan[MSFT]"" wrote:
Hi Leslie,.
Yes, I have got your email and sample project.
Unfortunately, after setting Web Share for your project, I was unable to
debug in on my side. It always reports an error dialog. Can you please give
it a recheck of your project?
Anyway, I have tried to give a review over your project and your word doc.
It seems that your current concern is not unhandled exception in unknown
worker thread, but how to disable the MDA dialog for the exception, yes?
Please confirm my understand on your requirement, then I will research
toward this.
Below is my comment to your 2 workarounds:
1. In my VS2005, the System.Exception in Debug->Exceptions dialog is not
checked, however, the MDA dialog still pops up in debug mode. Does this
approach work on your side? I hope you give it a recheck. Thanks.
2. I have tried this approach, my code snippet is listed below:
public class testexcept : Exception
{
}
protected void Page_Load(object sender, EventArgs e)
{
throw new testexcept ();
}
However, the MDA dialog still pops up, so it seems that these 2 approaches
both do not work on my side.
I look forward to getting further confirmation from you.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: "not handled in user code" dialog
- From: "Jeffrey Tan[MSFT]"
- RE: "not handled in user code" dialog
- References:
- RE: "not handled in user code" dialog
- From: "Jeffrey Tan[MSFT]"
- RE: "not handled in user code" dialog
- From: Leslie
- RE: "not handled in user code" dialog
- From: "Jeffrey Tan[MSFT]"
- RE: "not handled in user code" dialog
- From: Leslie
- RE: "not handled in user code" dialog
- From: "Jeffrey Tan[MSFT]"
- RE: "not handled in user code" dialog
- Prev by Date: Cannot open remote site
- Next by Date: Debugger Users group with VS.NET 2005
- Previous by thread: RE: "not handled in user code" dialog
- Next by thread: RE: "not handled in user code" dialog
- Index(es):
Relevant Pages
|