Hosting on a UNC share is not supported for the Windows XP Platform

Se avete una Soluzione complessa, un sito web con una struttura di file e cartelle complesse e magari dovete farne il debugging su un server remoto potreste incappare in questo errore:

An error occurred loading a configuration file: Failed to start monitoring changes to '<path>' because the network BIOS command limit has been reached. For more information on this error, please refer to Microsoft knowledge base article 810886. Hosting on a UNC share is not supported for the Windows XP Platform

L’articolo citato nell’errore (810886) suggerisce di modificare i valori MaxCmds e MaxMpxCt sono un ottimo punto di partenza, ma avendo a che fare con questo errore posso dire che, purtroppo, non sempre questo è sufficiente.

In particolare controllate se nell’event log avete messaggi simili a questo:

Event Type: Warning
Event Source: Srv
Event Category: None
Event ID: 2021
Date:
Time:
User: N/A
Computer:
Description: The server was unable to allocate a work item x times in the last 60 seconds

Se l’avete, suggerisco di provare con l’articolo 317249 aumentando il valore di MaxWorkItems.

Per i casi più ostici la soluzione che trovo più efficace è invece quella destritta nell’articolo 911272. Attenzione: se la vostra versione di .NET Framework è almeno 2.0.50727.62 significa che avete già la fix citata nell’articolo ma dovete attivarla:

Registry information To enable this hotfix, you must add the following DWORD value at the following registry key:
HKLM\Software\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 Bahavior
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

Normalmente imposto FCNMode a 2 in modo da avere ancora la File Change Notification funzionante.

 

Carlo Cardella
Senior Support Engineer
EMEA IIS and Web Developer Support