Home All Groups Group Topic Archive Search About

.NET Runtime 2.0 Error - in the Application Event Log

Author
24 Oct 2007 8:01 PM
SteveS
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.


--
SteveS

Author
26 Oct 2007 10:00 AM
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
Author
26 Oct 2007 12:08 PM
SteveS
I am developing in VS 2005 using VB.

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

Thanks,

--
SteveS


Show quote
"Vadym Stetsiak" wrote:

> 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
>
>
>
>
Author
26 Oct 2007 12:37 PM
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


Show quote
S> "Vadym Stetsiak" wrote:

>> 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
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
Author
5 Nov 2007 4:16 PM
SteveS
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,

--
SteveS


Show quote
"Vadym Stetsiak" wrote:

> 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> "Vadym Stetsiak" wrote:
>
>  >> 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
>  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
>
>
>
>
>
>
>

AddThis Social Bookmark Button