Question : Getting HTTP 403 error accessing an ASP.NET MVC 2 website deployed to local machine

I built an ASP.NET 4 MVC 2 website in Visual Studio 2010.
Works fine using the built-in ASP.NET Development Server.
I don't have any authentication or login.  It does connect to a SQLEXPRESS database in the Data folder.

Did a Build / Add Web Deployment Project...
Builds fine.

Added a new Web Setup Project
Did Add / Project Output... and specified the Precompiled Web Outputs of the Deployment project.
Builds fine.

Double-clicked on the generated .msi and installed it locally.

When I browse to the localhost's Virtual Directory Name:
http://localhost/MyApp
IE gives me an error:

HTTP 403 Forbidden
The website declined to show this webpage
This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.

I tried playing with IIS Application Properties' ASP.NET Configuration's Authentication settings' Authentication Mode (tried None and Windows, it had defaulted to Forms), and tried adding my main page name (Views/Home/Index.aspx or just Index.aspx) to the list of Documents / Default Documents (it had "defaults.aspx" only), but no luck.
I tried paging through all the Visual Studio project settings, but didn't see anything relevant.

Any ideas what I need to set to get access?
And if it's an IIS setting, how to make the Deployment or Setup project set that so I wouldn't have to do an extra step on the final Deployment server.

Answer : Getting HTTP 403 error accessing an ASP.NET MVC 2 website deployed to local machine

Yes, part of the solution was to add the wildcard mapping, a bit better explained here for IIS 5.1:
http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html

The other part was wrapping all relative paths to images & javascript files with the Url.Content() with the tilde, as shown in the last instruction on the same link.
Random Solutions  
 
programming4us programming4us