Solved

Intermittent problem causing ASP Runtime Error in IIS 7.0.

Posted on 2011-09-20
11
564 Views
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
ServerError.jpg
ASPError.txt
0
Comment
Question by:DataDudes
  • 6
  • 5
11 Comments
 
LVL 33

Expert Comment

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

Author Comment

by:DataDudes
ID: 36570131
How do I enable local error reporting in the web.config file?
0
 
LVL 33

Expert Comment

by:paulmacd
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.
0
 
LVL 2

Author Comment

by:DataDudes
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
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 36574181
Unless you can induce the problem, I think you'll just have to wait.
0
Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

 
LVL 2

Author Comment

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

Expert Comment

by:paulmacd
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.
0
 
LVL 2

Author Comment

by:DataDudes
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?

0
 
LVL 33

Accepted Solution

by:
paulmacd 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.
0
 
LVL 2

Author Comment

by:DataDudes
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
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: HttpUnhandledException
    Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
 
Request information:
    Request URL: https://www.domain.com:443/default.aspx?p=login
    Request path: /default.aspx
    User host address: x.x.x.x
    User:  
    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:

0
 
LVL 2

Author Closing Comment

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

743 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

13 Experts available now in Live!

Get 1:1 Help Now