Web Access Fails

  • Thread starter Thread starter Ursula
  • Start date Start date
U

Ursula

I am running IIS 5.1 on Windows XP Pro but keep failing
due to the message below. Please help!

"When you create a Web Application in Microsoft Visual
Studio .NET and then you use Windows Server 2003 with
Internet Information Server(IIS) 6.0, you 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"
 
| 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"

IIS tries to check if physical path points to specific URL. It creates file
with random name and ".tmp" extension and then tries to load it via HTTP. It
works well for IIS 5, but fails for IIS 6.

IIS 6 is by default configured that serves only known file types and for all
others just returns 404, even if the file physically exists. You must
therefore add the extension ".tmp" to MIME map:

1. Open the Internet Services Manager
2. Right click "COMPUTERNAME (Local Computer)" and select "Properties"
3. Click button "MIME Types"
4. In new window click "New" and specify ".tmp" as extension and
"application/octet-stream" as content type.

Alternatively, you can type only "." (dot) as extension to turn all the
behavior off (server would return all files, regardless the extension).
 
Back
Top