aspnet_wp.exe crashing

G

Guest

I am having the following show up in my application event log:

=====================================
Source: .NET Runtime
Event ID: 0
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: .NET Runtime version 1.1.4322.2032-
aspnet_wp.exe - Common Language Runtime Debugging Services: Application has
generated an exception that could not be handled.

Process id=0xecc (3788), Thread id=0xe20 (3616).

Click OK to terminate the application.
Click CANCEL to debug the application..
=======================================

immediately after that, the next entry in the application log is
Source ASP NET 1.1.4322.0
Event ID: 1000

Description:
aspnet_wp.exe (PID: 3788) stopped unexpectedly.

=========================================

If I restart IIS, it works for a while, maybe a day, then it crashes again.
Any clues ?

Thanks,
Tom
 
S

Scott Allen

Hi Tom:


Unfortunately, there is no easy way to know why the process stopped
unexpectedly.

You'll have to do some digging around. Fortunately there are tools
that can take a snapshot of the process before it terminates and from
there you can look at threads and call stacks to see what it was doing
at the moment it decided it needed to terminate.

See:
Production Debugging for .NET Framework Applications
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/DBGrm.asp

Particularity chapter 4 will guide you on how to debug unexpected
process terminations.

HTH,
 
R

Robbe Morris [C# MVP]

You aren't using try/catch/finally everywhere you should. Trap
your errors...
 
P

Patrick Olurotimi Ige

TOm as Robbe adviced try sing TRY/CATCH
It should help where to start from
 
S

Scott Allen

It doesn't sound like the problem is a managed exception - generally
something went terribly wrong in native code, or a memory threshold
was exceeded - something along those lines...
 
G

Guest

For now I have done the following:
1. Locate machine.config (try
C:\WINNT\Microsoft.NET\Framewo­rk\<VERSION FOLDER>\CONFIG).
2. Open machine.config in Notepad or other text editor.
3. Search for this string: "<processModel"
4. In the processModel element, change userName="machine" to
userName="SYSTEM"


This seems to be working so far....not sure why.
 

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