RE: "not handled in user code" dialog



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.


.



Relevant Pages

  • RE: Oracle Client ORA-03113 error hangs my windows service
    ... To answer your question, Kevin, the service exception handling works ... service does use multiple threads, but they are all handled by the .NET ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: making code native in a C++/CLI program
    ... which makes the exception very strange. ... // but can't mix and match in-place copy construction ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vc)
  • RE: Ok to call Application.get_Selection()?
    ... We get an exception that says COMException ... Cannot create a Selection object when this dialog is active. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.office.developer.com.add_ins)
  • RE: Cant get exception stack
    ... Server.GetLastError to obtain the original unhandled exception in ASP.NET ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to intercept/catch exceptions in out-of-process RPC/COM calls
    ... I want the COM service to crash when something bad ... I do not want COM to intercept the exception and return ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.ole)