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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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.
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
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 …
Suggested Courses

631 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