Publishing MVC3 Application for IIS Error. The web server is configured not to display the contents of this directory
I published my site to "C: \ inetpub \ wwwroot \ Sem_App" and created a website with physical path "C: \ inetpub \ wwwroot \ Sem_App" and port 84. When I browse the site on http://localhost:84/
, I get the following error.
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
I don't want to list the contents of the directory at all, I want to launch the default page that was used to run in VS 2010 debug mode. Does anyone know what's going on?
I tried to run this command and restarted iis, but it didn't work C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ aspnet_regiis.exe -ir
source to share
You may need to enable directory browsing in IIS. Check out the below link for deploying ASP.NET MVC on IIS 6. (for .Net 4.0)
http://www.codefrenzy.net/2011/10/19/deploying-asp-net-mvc-3-to-iis-6/
source to share