Help and Support
 

powered byLive Search

PRB: "Web Access Failed" Error Message When You Use Visual Studio .NET with IIS 6.0 to Create an ASP.NET Web Application

Article ID:817264
Last Review:December 3, 2007
Revision:5.6
Beta Information
This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.

No formal product support is available from Microsoft for this Beta product. For information about how to obtain support for a Beta release, see the documentation that is included with the Beta product files, or check the Web location from which you downloaded the release.
On This Page

SYMPTOMS

When you create a Web Application in Microsoft Visual Studio .NET and then you use Windows Server 2003 with Internet Information Services (IIS) 6.0, you may receive the following error message:

The default Web access mode for this project is set to file share, but the project folder at 'Project URL' cannot be opened with the path 'Physical Project path'. The error returned was:

Unable to create Web project 'Project Name'. The file path 'Physical project path' does not correspond to the URL 'Project URL'. The two need to map to the same location. HTTP Error 404: Not Found

Back to the top

CAUSE

Internet Information Services 6.0 blocks all requests with extensions that are not explicitly mapped in IIS. Microsoft Visual Studio .NET writes a file to the server with the .tmp extension and then requests that file back with an HTTP call to test the URL. IIS 6.0 blocks the .tmp file because .tmp files are not mapped. The call fails, and then you receive the
File Not Found
error message.

Back to the top

RESOLUTION

To resolve this problem, add a MIME type for the .tmp file in IIS. To do so, follow these steps:
1.In Control Panel, open Administrative Tools, and then double-click Internet Information Services.
2.Expand the (local computer) node, and then expand Web Sites.
3.Right-click Default Web Site, and then click Properties.
4.In Default Web Site Properties, click the HTTP Headers Tab.
5.Click MIME Types. In MIME Types, click New to register a file extension.
6.In the Extension textbox, type .tmp . In the MIME Type textbox, type temp.
7.Click OK.

Back to the top

STATUS

This behavior is by design.

Back to the top

MORE INFORMATION

Steps to Reproduce the Behavior

1.Open Microsoft Visual Studio .NET. On the File menu, point to New, and then click Project.
2.In the left pane of the New Project dialog box, under Project Types, click Visual Basic Projects or click Visual C# Projects.
3.In the right pane of the New Project dialog box, under Templates, click ASP.NET Web Application, and then click OK.
You receive the error message that is mentioned in the Symptoms section of this article.

Back to the top

REFERENCES

For more information, visit the following Microsoft Developer Network Web site:
http://msdn2.microsoft.com/en-us/library/aa286507.aspx (http://msdn2.microsoft.com/en-us/library/aa286507.aspx)

Back to the top


APPLIES TO
Microsoft ASP.NET 1.1
Microsoft Visual Basic .NET 2003 Standard Edition
Microsoft Visual C# .NET 2003 Standard Edition
Microsoft ASP.NET 1.0
Microsoft Visual Basic .NET 2002 Standard Edition
Microsoft Visual C# .NET 2002 Standard Edition
Microsoft Windows Server 2003, Web Edition
Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
Microsoft Windows Server 2003, Standard Edition (32-bit x86)
Microsoft Windows Small Business Server 2003 Premium Edition
Microsoft Windows Small Business Server 2003 Standard Edition
Microsoft Windows XP 64-Bit Edition Version 2003

Back to the top

Keywords: 
kberrmsg kbwebserver kbwebforms kbserver kbhttp404 kbhttp kbprb KB817264

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.