HTTP Error 403.14 - Forbidden IIS Error for ASP.Net MVC 4 Application

Pezhman Parsaee picture Pezhman Parsaee · Mar 10, 2013 · Viewed 76.7k times · Source

we developed an asp.net mvc 4 application. in vs 2012 this work fine. we publish this web application and putting it on iis 7.5, but when we want to browse web application through iis, this error message was show:

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

we think that this error may be from this web application, but we create another asp.net mvc 4 application (without any change and with internet template) and putting it on iis, and again top error show to us.

we search in the internet and see more poeples that this problem was happened for their. for example in this: 403 - Forbidden on basic MVC 3 deploy on iis7.5 link introduce an idea for solve this problem and assume that this problem was solved for their poeple, but this solution not work for me. another links that we say includes: this https://stackoverflow.com/questions/6885509/http-error-403-14-forbidden and this: http://yassershaikh.com/http-error-403-14-forbidden-the-web-server-is-configured-to-not-list-the-contents-of-this-directory/ but this solutions not work for me

any idea for solve this problem?

Answer

Maurizio Macagno picture Maurizio Macagno · Apr 10, 2013

I had the same problem on a brand new machine, after installing IIS 7.5, Visual Studio etc. I ended up refreshing ASP.NET registration and it worked.

C:\windows\Microsoft.NET\Framework64\v4.0.30319> .\aspnet_regiis.exe -ir C:\windows\Microsoft.NET\Framework64\v4.0.30319> iisreset

HTH