Article ID: 843584 - Last Review: December 3, 2007 - Revision: 2.5 Your ASP or ASP.NET application may restart or you may lose the session object when more SMB requests exist than the Web server can processImportant This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986
(http://support.microsoft.com/kb/256986/
)
Description of the Microsoft Windows registry SYMPTOMSYou work with Microsoft ASP.NET or Microsoft Active Server Pages (ASP) that are stored on a remote file share that uses the Server Message Block (SMB) protocol. When more SMB requests exist than the Web server can process, your Web application may unexpectedly restart or you may lose the session object. When this problem occurs, you may receive the following error message in the error log: Failed to start monitoring directory changes. CAUSEThis problem occurs when the number of SMB requests to the server is larger than the resources that are allocated to handle the requests. If the SMB redirector receives too many network requests, you may lose the session object, your application may restart, and you may receive an error message in the error log. Note This problem may occur because of server load or the remote file share load. To verify that the load on the server is the problem, click Start, click Run, type perfmon, and then click OK. Then, if the value of the Redirector/Current Commands entry is more than 90 percent of the maximum load value, raise the capacity of the server. This problem may occur when the number of SMB requests outnumber the resources to handle those requests, or it may occur when the number of SMB requests on the file share outnumber the resources to handle those requests. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. RESOLUTIONTo work around this problem, increase the number of connections that you can have by resetting the registry values of the MaxCmds and the MaxMpxCt keys. The recommended values are 253, 1124, and 2048. To do this, follow these steps. Note In this section, the LanmanWorkstation is the Web server and the LanmanServer is the remote share. 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.
294418
(http://support.microsoft.com/kb/294418/
)
Comparison of 32-bit and 64-bit memory architecture for 64-bit editions of Windows XP and Windows Server 2003
MORE INFORMATIONNote This article does not apply to x64 computers. For more information about SMB and your specific hardware and software configuration, contact your vendor or service provider. For more information about the SMB Redirector and how to raise the value of the MaxMpxCt and MaxMpx keys, click the following article numbers to view the articles in the Microsoft Knowledge Base: 317249
(http://support.microsoft.com/kb/317249/
)
How to troubleshoot Event ID 2021 and Event ID 2022
810886
(http://support.microsoft.com/kb/810886/
)
Error message: Error 56 - The network BIOS command limit has been reached
| Article Translations
|

Back to the top
