IIS 7 500 Error When Accessing Virtual Folders

冷暖自知 提交于 2019-11-29 11:13:21

For reference, the following article allowed us to resolve the issue: http://blogs.msdn.com/b/carloc/archive/2009/09/06/hosting-on-a-unc-share-is-not-supported-for-the-windows-xp-platform.aspx

We set the HKLM\Software\Microsoft\ASP.NET\FCNMode value to "2" which was able to reduce our multiplex connections down to a manageable value. Microsoft's official recommendation was to increase the multiplex connection limit on the SAN, however that was not feasible for us as it would have required pushing down all the CIFS shares hosted on the SAN.

Hope this helps someone in the future.

This is one of the worst problems I've come across when hosting with IIS.

Here are all the things we've tried, to no avail - I'm posting them for you in case maybe they'll work in your case:

On IIS box:

  1. DWORD FCNMode at HKLM\Software\Microsoft\ASP.NETchange/add with value 1 to disable.
  2. DWORD FCNMode at HKLM\SOFTWARE\Wow6432Node\Microsoft\ASP.NET change/add with value 1 to disable.
  3. DWORD MaxCmds at HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\Parameters change/add with value > 50, max of 65535 - we tried values all the way up to 65535.
  4. DWORD MaxMpxCt at HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters change/add with value > 50, max of 65535 - on the IIS box, you'll want to configure this to be the same as MaxCmds.
  5. Change Application Pool to have "No Managed Code"
  6. Stop IIS from checking subdirs for web.config files - Go to the Top level Server in IIS manager -> configuration editor -> section "system.applicationHost/sites" -> open the Collection -> Within each site, change the virtualDirectoryDefaults->allowSubDirConfig to False -> Close collection editor and click Apply.

On File Server:

  1. DWORD MaxWorkItems at HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters change/add with value > 4096, max 65535 - this is most easily calculated by IIS boxes * MaxCmds value on IIS box -- or just max at 65535.
  2. DWORD MaxMpxCt at HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters change/add with value > 50, max 65535 - I was under the impression that this is negotiated between the client and the server which the lower value of the two is what is applied. We tried various values up to max.

I'm going to keep adding to this answer as we try/fail with various new options. One more thing I should mention - if you have weird flaky UNC path resolution errors: "Specified network name is no longer available or you do not have permission" - temporarily try disabling jumbo MTU and any offloading options your NICs have (on both the IIS and File Server boxes) to see if that helps (it fixed our problem with HP NICs).

UPDATE: We enabled SMB 2 on our file server (Linux NAS) and with the registry changes we've already made to the IIS box, we've finally stopped receiving the dreaded Network BIOS limit errors.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!