1
votes

I am facing an error of "HTTP Error 403.14 – Forbidden" Web server is configured to not list the contents of this directory.

Most likely causes: A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

on VS 2012 with ISS 8.8

1
Is this a MVC project?atrljoe
Yes MVC 4 applicationSadaf Khan
And what is your question? Where are you encountering this, and why does the text of the error not help you understand the situation?IMSoP
I am asking the solution of this error and facing it while running my MVC 4.0 application on visual studio 2012Sadaf Khan
Best practice: When faced with a HTTP status on IIS like this, look up the error message in the IIS W3C log files. There will be also a Win32 status column (simply a Win32 error code), which often provides helpful information.JensG

1 Answers

0
votes

Since you indicated this was a MVC project you can try this. All you need to do is add this to your web.config or modify the section modules if you already have it.

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    ...
<system.webServer>