Re: .NET Runtime 2.0 Error - I need more details...



Jeffery,

Thanks for your input. It's unfortunate that asp.net exceptions are logged
with a great amount of detail while everything else just says something bad
happened. We'll start coding all applications with event log exception
handling for now.

One of the issues for example is this exception:
Event Log Message from xxxxxxxxx at 10:21:05 AM

Error Event 5000 in the Application log

From .NET Runtime 2.0 Error Reporting (User None)

------------------------------

EventType clr20r3, P1 lkkevw5rnuhx5jth2wldstavdxfhamfm, P2 1.0.0.0, P3
449bfc41, P4 system, P5 2.0.0.0, P6 4333ae87, P7 2bc2, P8 17, P9
system.net.sockets.socket, P10 NIL.

Not much to work with there, is that even one of our programs? Who knows...
I hope that with a service release or something Microsoft can update the
default execption logging for the clr & non-asp.net exceptions.

Thanks,
Ben


""Jeffrey Tan[MSFT]"" <jetan@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:UIZdyLCvGHA.5976@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Ben,

Yes, I see your concern. Since your team is monitorring eventlog, so the
most straightforward way of getting what you want is notifying the CLR to
log the customized information you want.

However, the logging code is buried in the CLR not any classes of FCL, and
it seems that CLR did not expose an interface for us to customize the
logging information, so we can not get this done with this approach.

The simplest workaround I can think of is wrapping all the code in Main
method with a big try...catch clause. Then in this catch clause, you may
write some customized event logging code at will. Since the any exception
in the main method is caught by your code, CLR will not do the default
logging for you. This approach is also demonstrated in the MSDN article I
provided you in last reply.

Hope this helps.

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: .NET Runtime 2.0 Error - I need more details...
    ... I just wanted to clarify one thing, the event logging that I'm talking ... For console appications however, the clr will ... so if you can not use this event to handle the exception. ... ConsoleException.Program.Main), calling mscorwks!JIT_Throw ...
    (microsoft.public.dotnet.framework)
  • RE: .NET Runtime 2.0 Error - I need more details...
    ... so if you can not use this event to handle the exception. ... The default event logging behavior of console application is built into ... ConsoleException.Program.Main), calling mscorwks!JIT_Throw ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • RE: Backup & Monitoring not working!
    ... Error message in Windows Small Business Server 2003: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.windows.server.sbs)
  • Re: DropDownList has SelectedValue which in invalid
    ... From your description you want to avoid getting the exception: ... 'ddlAssignedTo' has a SelectedValue which is invalid because it does not ... Microsoft Online Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Cant open Websites With VS2008
    ... Faulting module name: SHELL32.dll, version: 6.1.7100.0, time stamp: 0x49eea6b3 ... If it is Vista or 2008, please open Visual Studio as administrator first. ... please we need the following log and exception ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)

Loading