Visual Studio .NET IDE and IIS

C

Chris A.

Having a weird issue with IIS / VS.Net

When I try to start a new ASP.NET project I get the following error:
===
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 'Web Application1'. 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.
===

I tried to use the browse feature and that still brings up the same problem.
It's odd because I know the mappings are correct - that the folder
physically exists and the mappings correspond (I can access any pages via
IE/http fine).

Once I click on "Try to open the page with frontpage server extensions", the
new project opens fine. I assume it's a configuration error or something and
I'd just as soon ignore it but I've been trying to open a sample ASP.NET
application I retrieved from MSDN and I can't because of the aforementioned
problem. When I try to open the .csproj file I get the same error as above,
but in this case trying to open the project with frontpage server extensions
does not work either.

tia to anyone who knows what's going on.
 
A

Alvin Bruney [MVP]

do you have a virtual path mapped to this directory in IIS. you can verify
this using the mmc snapin for IIS from control panel
 
S

Scott M.

Mark the folder with the project you downloaded as a LAN share AND a Web
Shared folder. This should make it available to IIS as well as VS.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top