ApplicationShutdownReason ApplicationShutdownReason ApplicationShutdownReason ApplicationShutdownReason Enum


Specifies why the AppDomain class shut down.

public enum class ApplicationShutdownReason
public enum ApplicationShutdownReason
type ApplicationShutdownReason = 
Public Enum ApplicationShutdownReason


BinDirChangeOrDirectoryRename BinDirChangeOrDirectoryRename BinDirChangeOrDirectoryRename BinDirChangeOrDirectoryRename 6

A change was made to the Bin folder or to files in it.

BrowsersDirChangeOrDirectoryRename BrowsersDirChangeOrDirectoryRename BrowsersDirChangeOrDirectoryRename BrowsersDirChangeOrDirectoryRename 7

A change was made to the App_Browsers folder or to files in it.

BuildManagerChange BuildManagerChange BuildManagerChange BuildManagerChange 15

The 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.

ChangeInGlobalAsax ChangeInGlobalAsax ChangeInGlobalAsax ChangeInGlobalAsax 2

A change was made to the Global.asax file.

ChangeInSecurityPolicyFile ChangeInSecurityPolicyFile ChangeInSecurityPolicyFile ChangeInSecurityPolicyFile 5

A change was made in the code access security policy file.

CodeDirChangeOrDirectoryRename CodeDirChangeOrDirectoryRename CodeDirChangeOrDirectoryRename CodeDirChangeOrDirectoryRename 8

A change was made to the App_Code folder or to files in it.

ConfigurationChange ConfigurationChange ConfigurationChange ConfigurationChange 3

A change was made to the application-level configuration file.

HostingEnvironment HostingEnvironment HostingEnvironment HostingEnvironment 1

The hosting environment shut down the application domain.

HttpRuntimeClose HttpRuntimeClose HttpRuntimeClose HttpRuntimeClose 12

A call was made to Close().

IdleTimeout IdleTimeout IdleTimeout IdleTimeout 10

The maximum idle time limit was reached.

InitializationError InitializationError InitializationError InitializationError 13

An AppDomain initialization error occurred.

MaxRecompilationsReached MaxRecompilationsReached MaxRecompilationsReached MaxRecompilationsReached 14

The maximum number of dynamic recompiles of resources was reached.

None None None None 0

No shutdown reason was provided.

PhysicalApplicationPathChanged PhysicalApplicationPathChanged PhysicalApplicationPathChanged PhysicalApplicationPathChanged 11

A change was made to the physical path of the application.

ResourcesDirChangeOrDirectoryRename ResourcesDirChangeOrDirectoryRename ResourcesDirChangeOrDirectoryRename ResourcesDirChangeOrDirectoryRename 9

A change was made to the App_GlobalResources folder or to files in it.

UnloadAppDomainCalled UnloadAppDomainCalled UnloadAppDomainCalled UnloadAppDomainCalled 4

A call was made to UnloadAppDomain().


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

Applies to

See also