Export (0) Print
Expand All
Expand Minimize

ApplicationShutdownReason Enumeration

Specifies why the AppDomain class shut down.

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

public enum class ApplicationShutdownReason

Member nameDescription
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.
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 Versions and Dependencies.
ChangeInGlobalAsaxA change was made to the Global.asax file.
ChangeInSecurityPolicyFileA change was made in the code access security policy file.
CodeDirChangeOrDirectoryRenameA change was made to the App_Code folder or to files in it.
ConfigurationChangeA change was made to the application-level configuration file.
HostingEnvironmentThe hosting environment shut down the application domain.
HttpRuntimeCloseA call was made to Close.
IdleTimeoutThe maximum idle time limit was reached.
InitializationErrorAn AppDomain initialization error occurred.
MaxRecompilationsReachedThe maximum number of dynamic recompiles of resources was reached.
NoneNo shutdown reason was provided.
PhysicalApplicationPathChangedA change was made to the physical path of the application.
ResourcesDirChangeOrDirectoryRenameA change was made to the App_GlobalResources folder or to files in it.
UnloadAppDomainCalledA call was made to UnloadAppDomain.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft