• Sign in
 
  •  
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Common Tasks
  • Blog Home
  • Email Blog Author
  • RSS for comments
  • RSS for posts
Search
Tags
  • .NET Framework
  • Ajax/Javascript
  • ARR
  • ASP.NET
  • CLR
  • Cool stuff
  • DataAccess
  • Debugging/Windbg
  • Hotfix/Service Pack
  • IDEVDataCollector
  • IIS
  • Internet Explorer
  • Italian techs
  • LogParser
  • OT
  • Personal
  • Productivity
  • Random
  • Scripting/ASP
  • Security
  • Technology
  • Tools
  • Troubleshooting
  • Vista/Longhorn
  • Visual Studio
Archives
Archives
  • January 2013 (2)
  • November 2010 (1)
  • October 2010 (1)
  • July 2010 (2)
  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • January 2010 (1)
  • October 2009 (2)
  • September 2009 (2)
  • August 2009 (1)
  • July 2009 (5)
  • June 2009 (1)
  • May 2009 (1)
  • April 2009 (3)
  • March 2009 (3)
  • February 2009 (5)
  • January 2009 (3)
  • December 2008 (5)
  • November 2008 (3)
  • October 2008 (2)
  • September 2008 (3)
  • August 2008 (3)
  • July 2008 (3)
  • June 2008 (5)
  • May 2008 (4)
  • April 2008 (8)
  • March 2008 (4)
  • February 2008 (5)
  • January 2008 (2)
  • December 2007 (4)
  • November 2007 (6)
  • October 2007 (6)
  • September 2007 (8)
  • August 2007 (6)
  • July 2007 (7)
  • June 2007 (10)
  • May 2007 (9)
  • April 2007 (12)
  • March 2007 (8)
  • February 2007 (5)
  • January 2007 (3)
  • December 2006 (1)
  • November 2006 (4)
  • October 2006 (2)
  • September 2006 (9)
  • August 2006 (2)
  • July 2006 (1)

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

MSDN Blogs > Never doubt thy debugger > Hosting on a UNC share is not supported for the Windows XP Platform

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

Carlo Cardella
6 Sep 2009 5:43 AM
  • Comments 3

If you have a complex solution, with a lot of folders and subfolders, and you are hosting and debugging it on a remote IIS server (not on your local machine), you may get an error similar to the following:

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

The article mentioned in the error message (810886) suggests to change the MaxCmds and MaxMpxCt values, but when I had the chance to work on this problem this solution does not always work (anyway I suggest you to give it a try before discarding it).

You may find another message in your event log, like the following:

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

If you do, give the article 317249 a try (increase the MaxWorkItems value).

The solution I find most useful is the one described in 911272: if your .NET build is at least 2.0.50727.62 you already have the fix mentioned in the article but you may need to activate it:

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 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

I suggest to set FCNMode to 2, so you’ll still have File Change Notifications in place.

 

Carlo

Quote of the day:
The greatest challenge to any thinker is stating the problem in a way that will allow a solution. - Bertrand Russell
  • 3 Comments
Visual Studio
Leave a Comment
  • Please add 3 and 6 and type the answer here:
  • Post
Comments
  • Bryan Andrews
    25 Mar 2010 5:25 AM

    Have you tried the FCNMode fix when running in 32bit (enable 32-bi applications set to true)?

    The FCNMode set to 2 works for me on 64bit, but once switched to 32 bit it seems the errors come back (as if the 32 bit dlls ignore this setting). We are running windows 2008 r2 (64) with dll version 2.0.50727.4927.

  • Marco Antonio Contarski
    27 Jul 2011 6:01 AM

    Hi, this error also occurs while using a network drive mapped to a local computer.

    Example:  X: =>  \\mylocalcomputer\wwwroot   (refers to c:\inetpub\wwwroot  in local machine)

  • Naveen Kumar
    10 Jul 2012 6:19 PM

    Changing the FCNMode to 2 is not working for Windows 2008 ( 32 bit).Could anyone suggest the possible solution.

    Thanks in Advance.

Page 1 of 1 (3 items)
  • © 2013 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy & Cookies
  • Report Abuse
  • 5.6.426.415