Re: .NET Runtime 2.0 Error - I need more details...
- From: "Ben" <bennett@xxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Aug 2006 10:25:29 -0400
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.
.
- Follow-Ups:
- Re: .NET Runtime 2.0 Error - I need more details...
- From: "Jeffrey Tan[MSFT]"
- Re: .NET Runtime 2.0 Error - I need more details...
- References:
- RE: .NET Runtime 2.0 Error - I need more details...
- From: "Jeffrey Tan[MSFT]"
- RE: .NET Runtime 2.0 Error - I need more details...
- From: Ben
- RE: .NET Runtime 2.0 Error - I need more details...
- From: "Jeffrey Tan[MSFT]"
- RE: .NET Runtime 2.0 Error - I need more details...
- Prev by Date: Re: Why Visual Basic 2005 does not let refactoring as C# does?
- Next by Date: Re: "Fix this Application" Problem
- Previous by thread: RE: .NET Runtime 2.0 Error - I need more details...
- Next by thread: Re: .NET Runtime 2.0 Error - I need more details...
- Index(es):
Relevant Pages
|
Loading