PRB: "Application is Restarting" Error Occurs When You Access the Windows Rights Management Services Administrative Web Page (829978)



The information in this article applies to:

  • Microsoft Windows Rights Management Services (RMS) for Windows Server 2003
  • Microsoft ASP.NET (included with the .NET Framework 1.1)
  • Microsoft ASP.NET (included with the .NET Framework) 1.0

SYMPTOMS

When you visit the Microsoft Windows Rights Management Services administrative Web page from a computer that is using antivirus software with real-time monitoring enabled, a random application may restart, and you may 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.

CAUSE

The Windows Rights Management Services administrative Web page is developed by using ASP.NET. Some antivirus applications write back information to the files that they scan. Every time that a user changes a configuration (.config) file or the contents of the Bin folder, the application should restart to incorporate these changes. However, 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

To resolve this problem, use one of the following methods:
  • Disable real-time monitoring in your antivirus software.
  • Exclude the application folders from the antivirus scan list.
For more information about how to change these settings, see your antivirus software documentation.

WORKAROUND

To work around this issue with some antivirus software, you may be able to increase the delayNotificationTimeout attribute of the <httpRuntime> configuration section in the Web.config file. The delayNotificationTimeout value is set with the following entry in the Web.config file:
<httpRuntime delayNotificationTimeout="5" />
The default value is 5 seconds. This default value may not be long enough for specific hardware.

Increase the time-out value to a value that works for your hardware and for your computer speed (for example, set the value to 60 seconds).

STATUS

This behavior is by design.

REFERENCES

For additional information about this issue in ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base:

312592 PRB: Random Application Restarts with "Application Is Restarting" Error in ASP.NET


Modification Type:MajorLast Reviewed:10/20/2003
Keywords:kbConfig kbHttpRuntime kbprb KB829978 kbAudDeveloper