Intermittent problem causing ASP Runtime Error in IIS 7.0.

Posted on 2011-09-20
Last Modified: 2012-05-12
We are running ASI Software's eCommerce site in IIS 7.0 on a Windows 2008 server.  Sometimes the website will throw a Runtime Error (attached as a picture to this post).  This error will sometimes go away on its own in a few minutes, or I will have to restart the worker process for the site to get it running again.  I have found a lot of ASP errors in the event logs (also attached) and I'm not sure if these have anything to do with the problem.  The problem has recently surfaced and the website code has not changed in years.  We have recently added online backups through Jungle Disk but they are scheduled to run at 12AM nightly.  The problem usually pops up during the day, so I'm not sure if the backups are the cause of the issue.

We have updated Windows components to the latest version, including .NET Framework and the latest service packs.  Does anyone have any ideas on what might be causing these runtime errors and a way to permanently fix the problem?

Thank you
Question by:OAC Technology
  • 6
  • 5
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36569741
Can you turn on local error reporting in the web.config?  That would probably go a long way toward troubleshooting this problem.

Author Comment

by:OAC Technology
ID: 36570131
How do I enable local error reporting in the web.config file?
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36570161
It tells you in the error message you posted:

  <customErrors mode="RemoteOnly" />

(or you can turn customErrors off altogether with mode="off")

Anyway, you'll end up getting the actual error message so when the problem happens again, just go to the server and bring up the problem site to see the message.
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.


Author Comment

by:OAC Technology
ID: 36573860
Thanks, I have this set now.  Is there anything I can do in the mean time to find out and fix what is causing this problem?  I have error reporting set up, but I would like to fix the problem before it happens again.  Thank you
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36574181
Unless you can induce the problem, I think you'll just have to wait.

Author Comment

by:OAC Technology
ID: 36575680
Will there be an error log file generated, or will the error only be displayed on the webpage when this happens?
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36575739
I expect a log entry will be generated, but you should (I hope) see the cause of the error itself if/when you browse to the site.

Author Comment

by:OAC Technology
ID: 36575868
The problem just happened again, the error that was displayed shows the same information.  I have changed the web.config to <customErrors mode="Off" /> but the error still shows that RemoteOnly is being used.  Is there another file I need to edit?

LVL 34

Accepted Solution

Paul MacDonald earned 500 total points
ID: 36576037
Shouldn't be.

On the web server itself, open IIS Manager, in the left-hand treeview, navigate to the site.  Right-click and select "browse".  You should see the local error message.

Author Comment

by:OAC Technology
ID: 36576162
At the time this happened, the event viewer shows about 30-40 of these messages:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/21/2011 1:41:51 PM
Event time (UTC): 9/21/2011 6:41:51 PM
Event ID: 4cbf5f952c2c438d8081c163099b4a06
Event sequence: 3848
Event occurrence: 37
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/2/ROOT-1-129610525672968750
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\inetpub\wwwroot\
    Machine name: WEB2K8
Process information:
    Process ID: 3840
    Process name: w3wp.exe
Exception information:
    Exception type: HttpUnhandledException
    Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Request information:
    Request URL: 
    Request path: /default.aspx
    User host address: x.x.x.x
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
    Thread ID: 5
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.Util.AspCompatApplicationStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:


Author Closing Comment

by:OAC Technology
ID: 36955866
After using your steps to view the error, the vendor was able to help find that the site needed a software upgrade.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XML and version of MS XML Dom Document versions 5 33
Validating Date 4 28
Exchange OWA website Redirection 7 40
robocopy question 3 27
A safe way to clean winsxs folder from your windows server 2008 R2 editions
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

740 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