Article ID: 831210 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
When you use Microsoft Visual Studio .NET 2002 to create a new Web project, and then you connect to Microsoft Windows Server 2003 as the Web server, a Web Access Failed dialog box appears and you receive the following error message:
The default Web access mode for this project is set to file share, but the project folder at 'http://localhost/WebApplication1' cannot be opened with the path 'c:\inetpub\wwwroot\WebApplication1'. The error returned was: Unable to create web project 'WebApplication1'. The file path 'c:\inetpub\wwwroot\WebApplication1' does not correspond to the URL 'http://localhost/WebApplication1'. The two need to map to the same server location. HTTP Error 404: Not Found
This problem occurs because Microsoft Internet Information Services (IIS) 6.0 blocks all file name extensions that are not explicitly mapped. By default, the .tmp file name extension is not mapped on IIS 6.0 for security reasons. During the process of creating a Web project, Visual Studio .NET 2002 tests to confirm that the URL and the UNC path match. To do this, Visual Studio .NET writes a file that has the .tmp extension to the server, and then Visual Studio .NET requests this file from the server through an HTTP request. Because the .tmp extension is not mapped on IIS 6.0, IIS returns HTTP Error 404. This causes Visual Studio .NET to return the error message that is described in the "Symptoms" section.
Note This problem does not occur when you use Microsoft Visual Studio .NET 2003 because this version of Visual Studio .NET uses a file that has the .htm file name extension for this process.
This article offers a hotfix to solve the problem that is described in the "Symptoms" section of this article. However, alternate workarounds to this problem exist. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/327283/ )BUG: Cannot Create Web Projects on Windows Server 2003
Service pack informationTo resolve this problem, obtain the latest service pack for Microsoft Visual Studio .NET. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/837234/ )List of bugs that are fixed in Visual Studio .NET 2002 Service Pack 1
Hotfix informationThe English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Date Time Version Size File name ------------------------------------------------------------------- 28-Oct-2003 14:03 7.0.9745.0 917,504 Csproj.dll 28-Oct-2003 05:58 7.0.9745.0 176,128 Csprojui.dll 28-Oct-2003 13:43 7.0.9745.0 311,296 Dirprj.dll 28-Oct-2003 13:57 7.0.9745.0 1,400,832 Msvbprj.dll 28-Oct-2003 05:57 7.0.9745.0 180,224 Msvbprjui.dll 28-Oct-2003 07:38 7.0.9745.0 253,952 Visualstudioteamcore.dll 28-Oct-2003 07:36 7.0.9745.0 888,832 Vsavb7dt.dll 28-Oct-2003 07:36 7.0.9745.0 999,424 Vsavb7rt.dll 28-Oct-2003 07:37 7.0.9745.0 794,624 Vsavbproj.dll 28-Oct-2003 14:02 7.0.9745.0 2,981,888 Vsscc.dll 28-Oct-2003 13:43 7.0.9745.0 311,296 Dirprj.dll 28-Oct-2003 07:38 7.0.9745.0 253,952 Visualstudioteamcore.dll
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article. This problem was first corrected in Visual Studio .NET 2002 Service Pack 1.
Article ID: 831210 - Last Review: February 27, 2014 - Revision: 2.4
Contact us for more help
Connect with Answer Desk for expert help.