Web access failed

  • Thread starter Thread starter Dinesh SK
  • Start date Start date
D

Dinesh SK

Sir,

I have installed VB.Net 2002 in Windows XP proffessional
PC. When I try to open a new using ASP.NET WEB
application I am getting the following error. Please help
me to sort out the issue at the earliest. I have
installed IIS also.

The error message is

Web Acces Failed;

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. The
server returned an invalid or unrecoginized response.



Regards
Dinesh_sk
 
This error is caused by VB.NET trying to create the web site at
c:\inetpub\wwwroot\webapplication1 with the web site already existing at a
different location. Here are some things to check:

1) Have you moved the default location of your web sites (is it still
c:\inetpub\wwwroot)? If you have, you might need to manually create the web
application in IIS before creating the project in VB.NET.
2) Do you already have a web application in IIS called WebApplication1? If
you do, .NET will try to use this project location.

Jeff
 
Back
Top