I Get Error While Connected to SMB / UNC Share When Running When Running Visual Web Developer or VS
Here is the error you receive:
Error 1 An error occurred loading a configuration file: Failed to start monitoring changes to '\\yourshare\index.aspx' 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. \\yourshare\web.config
Here is the Solution:
RESOLUTION:
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.To resolve this issue, verify that the MaxCmds and MaxMpxCt registry values are set to 50 or more. To do this, follow these steps:
| 1. | Click Start, click Run, type regedit, and then click OK. |
| 2. | Locate and then click the following key in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters |
| 3. | In the right pane, double-click the MaxCmds value. |
| 4. | In the Value data box, verify that the value is 50 or more. Note In a Microsoft Windows Terminal Services environment, you may have to set the MaxCmds registry value to 500 or more. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 232476 (http://support.microsoft.com/kb/232476/) Terminal Server client connections and logon limited by MaxWorkItem and MaxMpxCt values |
| 5. | Locate and then click the following key in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parametersNote Make sure that you make this change to the lanmanserver\parameters registry key and not to the lanmanworkstation\parameters registry key mentioned in step 2. |
| 6. | In the right-pane, double-click the MaxMpxCt value. Note On SMB servers that are running a version of Windows earlier than Windows 2000, the MaxMpxCt registry entry is named MaxMpxCount, but has the same function. |
| 7. | In the Value data box, verify that the value is 50 or more. Note The MaxMpxCt value determines the maximum number of simultaneous, active requests that the server permits from an individual client. |
| 8. | Quit Registry Editor. |
MORE INFORMATION
The maximum number of simultaneous, active requests between an SMB client and the server is determined when a client/server session is negotiated. The maximum number of requests that a client supports is determined by the MaxCmds registry value. The maximum number of requests that a server supports is determined by the MaxMpxCt registry value. For a particular client and server pair, the number of simultaneous, active requests is the lesser of these two values.In a BizTalk environment, add both registry values to the BizTalk server and the remote UNC Share server.
To track the number of simultaneous, active requests on an SMB client, add the Current Commands counter in the SMB Redirector performance object to Performance Monitor.