Last post Feb 02, 2009 03:01 AM by Thomas Sun – MSFT
Jan 28, 2009 06:06 PM|Wonde|LINK
Hi fellow developers,
I am having difficulty on creating a web application which must be run as Local IIS.My operating system is Vista Home Premium and I am working on Visual Studio.When I try to run a web application which is created as a Local IIS it will show an error saying
c:\\inetpub\wwwroot\WebSite4\Default.aspx: ASP.NET runtime error: Failed to map the path '/WebSite4'. c:\\inetpub\wwwroot\WebSite4\Default.aspx 1 1 http://wonde-pc/WebSite4/
when I try to run with out debugging it will show the following error.
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3072
Failed to map the path
Jan 28, 2009 07:11 PMemail@example.com|LINK
File and folder permissions for the ASP.NET process account, NETWORK SERVICE unless you changed it.
Jan 28, 2009 07:14 PM|noizcomplaint|LINK
Make sure that before you view your website in a browser you have to create a virtual directory in IIS. This can be done in IIS. I am not very familiar with Vista but I am sure there is a similar wizard that prompts you to enter the file path where your
site is located as well as permissions. Once the V. Directory is created, you can access the website in your browser using the following URL:
Jan 28, 2009 07:29 PMfirstname.lastname@example.org|LINK
Make sure that before you view your website in a browser you have to create a virtual directory in IIS.
This is not true. The path, as requested, must exist. Whether it's a physical or virtual directory doesn't make a difference. But the point is correct, check and make sure that the directory really is there.
Jan 29, 2009 04:41 PM|Wonde|LINK
I created the website using the visual studion in Local IIS mode.When I see the site it is already there in the IIS.So what else do I have to make it work.
I logged in as administrator and all the site have permission of my account.
Feb 02, 2009 03:01 AM|Thomas Sun – MSFT|LINK
If we create another simple test website, does it have the same issue? When we try to run HTTP_Based website, ASP.NET process identity is NETWORK SERVICE for IIS 7.0 by default. We need to make sure this ASP.NET process identity has permission on that folder.
For testing, we can add EveryOne to that folder and grant more permission.
If we just build your website without running, does it have any issue? We can try to run Visual Studio as administrator on vista (right-click Visual Studio, and then click Run as administrator).
I look forward to receiving your test results.