• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4017
  • Last Modified:

.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 2.0.0.0, P6 461eee3d, P7 331e, P8 15a, P9 system.unauthorizedaccess, P10 NIL.
Not much more I can say really apart from HELP!!!!!
0
stu_evans99
Asked:
stu_evans99
  • 2
  • 2
1 Solution
 
Dan McFaddenSystems EngineerCommented:
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.
0
 
stu_evans99Author Commented:
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
Description:
Logon Failure:
       Reason:            An error occurred during logon
       User Name:      
       Domain:            
       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:      -

0
 
Dan McFaddenSystems EngineerCommented:
Stu,

You will have add to your code a module to manage unhandled exceptions.  Here is a good article with  several links, http://www.eggheadcafe.com/articles/20060305.asp.  I hope this helps.

Dan
0
 
stu_evans99Author Commented:
After learning a new trade in .NET, finally got there. Thanks for the help.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now