Article ID: 312592 - Last Review: September 10, 2007 - Revision: 4.3 PRB: Random application restarts with "Application is restarting" error in ASP.NETThis article was previously published under Q312592 SYMPTOMS
When you run ASP.NET on a computer that is using antivirus software with real-time monitoring enabled, you may notice that a random application restarts, and you receive the following error message in the browser:
Application is restarting. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Application is restarting. CAUSEThis problem occurs because of some antivirus applications write back information to the files that they scan. Every time a user changes the Web.config configuration file, the Global.asax file, or the contents of the Bin folder, the application should restart to incorporate these changes. Because antivirus scanning changes cannot be distinguished from the user's file changes, the application restarts when the antivirus software scans these folders. Note This problem may occur even when no error is returned. If the virus-scanning software triggers change notifications, every change notification is doubled at the very least: one real change notification and an additional change notification from the antivirus software some time later. RESOLUTION
Use one of the following methods to resolve this problem:
With some antivirus software, you may be able to increase the delayNotificationTimeout attribute of the <httpRuntime> configuration section in the Web.config file to work around this problem. This value is set with the following entry in the Web.config file: STATUSThis behavior is by design. MORE INFORMATION
If the file update occurs while the first request is being processed, ASP.NET rejects the request and displays the "Application is restarting" error because the notification occurs before the application is fully compiled.
REFERENCES
For additional information about related issues with Microsoft Mobile Internet Toolkit, click the following article number to view the article in the Microsoft Knowledge Base:
310619
(http://support.microsoft.com/kb/310619/
)
PRB: Session state is lost in Mobile Web Form applications during development
| Article Translations
|
Back to the top
