.NET Runtime 2.0 Error - in the Application Event Log

G

Guest

EventType clr20r3, P1 perfws.exe, P2 1.0.0.0, P3 47151b11, P4 perfws, P5
1.0.0.0, P6 47151b11, P7 32, P8 2b7, P9 system.exception, P10 NIL.

I am running a Windows Service application that does multithreaded
asynchronous HttpListeners and Socket calls.

I am catching all exceptions in my code. How do I interpret this so that I
can fix the problem.
 
V

Vadym Stetsiak

Hello, SteveS!

Have a look at
http://blogs.msdn.com/tess/archive/2006/04/27/asp-net-2-0-crash-case-study-unhandled-exceptions.aspx

and

http://msdn2.microsoft.com/en-us/library/171ezxzc(VS.80).aspx

HTH

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Wed, 24 Oct 2007 13:01:02 -0700:

S> EventType clr20r3, P1 perfws.exe, P2 1.0.0.0, P3 47151b11, P4 perfws,
S> P5
S> 1.0.0.0, P6 47151b11, P7 32, P8 2b7, P9 system.exception, P10 NIL.

S> I am running a Windows Service application that does multithreaded
S> asynchronous HttpListeners and Socket calls.

S> I am catching all exceptions in my code. How do I interpret this so
S> that I can fix the problem.


S> --
S> SteveS
 
G

Guest

I am developing in VS 2005 using VB.

Do you have a VB example that I can use in my Windows Service Application?

Thanks,
 
V

Vadym Stetsiak

Hello, SteveS!

Have a look here
http://blogs.vbcity.com/drydo/archive/2007/10/02/8752.aspx
and here
http://www.codeproject.com/dotnet/ExceptionHandling.asp

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Fri, 26 Oct 2007 05:08:00 -0700:

S> I am developing in VS 2005 using VB.

S> Do you have a VB example that I can use in my Windows Service
S> Application?

S> Thanks,

S> --
S> SteveS



S>>> EventType clr20r3, P1 perfws.exe, P2 1.0.0.0, P3 47151b11, P4
S>>> perfws,
S>>> P5
S>>> 1.0.0.0, P6 47151b11, P7 32, P8 2b7, P9 system.exception, P10 NIL.

S>>> I am running a Windows Service application that does multithreaded
S>>> asynchronous HttpListeners and Socket calls.

S>>> I am catching all exceptions in my code. How do I interpret this so
S>>> that I can fix the problem.


S>>> --
S>>> SteveS
 
G

Guest

I added the following to my OnStart method:

Dim currDomain As AppDomain = AppDomain.CurrentDomain
AddHandler currDomain.UnhandledException, AddressOf appDom_UnhandledExc


And then I added a write to the event log and it displayed the error.

Private Sub appDom_UnhandledExc(ByVal sender As Object, ByVal e As
UnhandledExceptionEventArgs)
EventLog1.WriteEntry("AppDomain Unhandled Exception - " & "Sender: " &
sender.ToString & " - Error: " & e.ExceptionObject.ToString)
End Sub


Thanks for your help,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top