.NET Runtime 2.0 Error with IIS.

Posted on 2007-09-28
Last Modified: 2012-06-21
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!!!!!
Question by:stu_evans99
    LVL 25

    Expert Comment

    by:Dan McFadden
    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.

    Author Comment

    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:      -

    LVL 25

    Accepted Solution


    You will have add to your code a module to manage unhandled exceptions.  Here is a good article with  several links,  I hope this helps.


    Author Comment

    After learning a new trade in .NET, finally got there. Thanks for the help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now