Link to home
Create AccountLog in
Avatar of stu_evans99

asked on

.NET Runtime 2.0 Error with IIS.

I have a Windows 2003 server with IIS installed with .NET 2.0 installed. I have a website with 2 Virtual Directories. When I access one of these directories, a process dw20.exe kills the CPU and in the Application event log i get this message:
Source: .NET Runtime 2.0 Error
Event ID:  5000
Description:  EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 mscorlib, P5, P6 461eee3d, P7 331e, P8 15a, P9 system.unauthorizedaccess, P10 NIL.
Not much more I can say really apart from HELP!!!!!
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

This is an issue with unhandled exceptions in your .NET 2.0 code.  1.1 allowed these exceptions to slide, 2.0 forces you to deal with them.  You can override the 2.0 settings, allowing the app to run like it would for 1.1 exception handling.  Edit the following file:

- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Aspnet.config.
- edit this key: <legacyUnhandledExceptionPolicy enabled="false" />  change enabled to "true"

I would recycle the app pool associated with the web app.
Avatar of stu_evans99


Cheers dan, that has stopped the CPU from spiking!!!! The users can finally read the lunch menu on the intranet :-))
Now, how do I solve it permanently? The application log still shows the application failing. I think it must be a permission problem. In the Security log, I get the following error at the same time as the .NET runtime error:

Event Type:      Failure Audit
Event Source:      Security
Event Category:      Logon/Logoff
Event ID:      537
Date:            01/10/2007
Time:            12:55:14
User:            NT AUTHORITY\SYSTEM
Computer:      XXXXXXX
Logon Failure:
       Reason:            An error occurred during logon
       User Name:      
       Logon Type:      3
       Logon Process:      Authz  
       Authentication Package:      Kerberos
       Workstation Name:      XXXXXXX
       Status code:      0xC000040A
       Substatus code:      0x0
       Caller User Name:      XXXXXXX$
       Caller Domain:      XX
       Caller Logon ID:      (0x0,0x3E7)
       Caller Process ID:      776
       Transited Services:      -
       Source Network Address:      -
       Source Port:      -

Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
After learning a new trade in .NET, finally got there. Thanks for the help.