This documentation is archived and is not being maintained.

ApplicationShutdownReason Enumeration

Specifies why the AppDomain class shut down.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public enum ApplicationShutdownReason

Member nameDescription
NoneNo shutdown reason was provided.
HostingEnvironmentThe hosting environment shut down the application domain.
ChangeInGlobalAsaxA change was made to the Global.asax file.
ConfigurationChangeA change was made to the application-level configuration file.
UnloadAppDomainCalledA call was made to UnloadAppDomain.
ChangeInSecurityPolicyFileA change was made in the code access security policy file.
BinDirChangeOrDirectoryRenameA change was made to the Bin folder or to files in it.
BrowsersDirChangeOrDirectoryRenameA change was made to the App_Browsers folder or to files in it.
CodeDirChangeOrDirectoryRenameA change was made to the App_Code folder or to files in it.
ResourcesDirChangeOrDirectoryRenameA change was made to the App_GlobalResources folder or to files in it.
IdleTimeoutThe maximum idle time limit was reached.
PhysicalApplicationPathChangedA change was made to the physical path of the application.
HttpRuntimeCloseA call was made to Close.
InitializationErrorAn AppDomain initialization error occurred.
MaxRecompilationsReachedThe maximum number of dynamic recompiles of resources was reached.
BuildManagerChangeThe compilation system shut the application domain. The BuildManagerChange member is introduced in the .NET Framework version 3.5.  For more information, see .NET Framework 3.5 Architecture.

The ApplicationShutdownReason represents the possible values for the ShutdownReason property of the HostingEnvironment class.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0