Registry information
To enable this hotfix, you must add the following DWORD value at the following registry key:
HKLM\Software\Microsoft\ASP.NET\FCNMode
If you are running a 32-bit process on an x64-based system, add the following DWORD value at the following registry key:
HKLM\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\FCNMode
The following table lists possible values for the FCNMode DWORD value and the behavior that is associated with each value.
Value | Behavior |
---|
Does not exist | This is the default behavior. For each subdirectory, the application will create an object that will monitor the subdirectory. |
0 or greater than 2 | This is the default behavior. For each subdirectory, the application will create an object that will monitor the subdirectory. |
1 | The application will disable File Change Notifications (FCNs). |
2 | The application will create one object to monitor the main directory. The application will use this object to monitor each subdirectory. |
Note Starting with the Microsoft .NET Framework 4.5 and later versions, FCNMode can be configured by using the
httpRuntime settings as follows:
<httpRuntime fcnMode="<setting>"/>
Setting | Corresponding value |
---|
NotSet(0) | This is the same as setting 0 or greater than 2 in the registry. |
Default (1) | This is the same as setting 0 or greater than 2 in the registry. |
Disabled (2) | This is the same as setting 1 in the registry. |
Single (3) | This is the same as setting 2 in the registry. |
For example, you can use
httpRuntime as follows to disable FCNMode:
<httpRuntime fcnMode="Disabled"/>