Question: I am running my asp.net website through visual studio 2012. 
However when I click run I get this error in the browser: Http 403.14 error(the web server is configured to not list the contents of this directory) !

any suggestions to resolve this error?

Answer: 
Try adding this to web.config:

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

```
I was trying to add an agular folder into my existing VS 2015 project, and make all url starting with angular re-written with angular/index by adding rewrite element in web.config. But I was getting the error with the url localhost:49667/angular/ although all other urls starting with angular worked, e.g. angular/xxxx.

I tried the common solutions suggested online, such as, enable document browsing, set default document, etc. None of these worked. Eventually, ErikE's answer here solve my problem:

[The Web server is configured to not list the contents of this directory. asp.net vs 2012 error?](https://stackoverflow.com/questions/20731719/the-web-server-is-configured-to-not-list-the-contents-of-this-directory-asp-net)

It turns out I already have an angular folder in my app which contains all the angular code. As a result, I am no longer able to have access to the url localhost:49667/angular/ even though I create an angular controller. After I change the controller's name to something else, the error is gone.
Hopefully, this would help others out because few people mentions this answer online so far.