Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Intermittent problem causing ASP Runtime Error in IIS 7.0.

Posted on 2011-09-20
11
Medium Priority
?
623 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:OAC Technology
[X]
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
11 Comments
 
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.
0
 
LVL 2

Author Comment

by:OAC Technology
ID: 36570131
How do I enable local error reporting in the web.config file?
0
 
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.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 2

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
0
 
LVL 34

Expert Comment

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

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?
0
 
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.
0
 
LVL 2

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?

0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 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: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
    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: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.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

715 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