Intermittent problem causing ASP Runtime Error in IIS 7.0.

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
OAC TechnologyProfessional NerdsAsked:
Who is Participating?
Paul MacDonaldConnect With a Mentor Director, Information SystemsCommented:
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.
Paul MacDonaldDirector, Information SystemsCommented:
Can you turn on local error reporting in the web.config?  That would probably go a long way toward troubleshooting this problem.
OAC TechnologyProfessional NerdsAuthor Commented:
How do I enable local error reporting in the web.config file?
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Paul MacDonaldDirector, Information SystemsCommented:
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.
OAC TechnologyProfessional NerdsAuthor Commented:
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
Paul MacDonaldDirector, Information SystemsCommented:
Unless you can induce the problem, I think you'll just have to wait.
OAC TechnologyProfessional NerdsAuthor Commented:
Will there be an error log file generated, or will the error only be displayed on the webpage when this happens?
Paul MacDonaldDirector, Information SystemsCommented:
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.
OAC TechnologyProfessional NerdsAuthor Commented:
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?

OAC TechnologyProfessional NerdsAuthor Commented:
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:

OAC TechnologyProfessional NerdsAuthor Commented:
After using your steps to view the error, the vendor was able to help find that the site needed a software upgrade.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.