Possible Duplicate:
MVC4 HTTP Error 403.14 – Forbidden
Every time I have to configure a ASP.Net mvc application I come across the same error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
There is a reason this might happen and I have figured it out.
Configured app pool to use LocalSystem account.
Added permission for this user in the project folder.
Today another application with this problem and only changing the application pool to use LocalSystem account was not enough. What could I do to solve this problem.
P.S: In Asp Net mvc we do not enable browser directory on IIS so I don´t understand why the problem.
You are seeing this error precisely because you do not allow directory browsing. What this is showing you is that MVC has not picked up on the request and IIS is attempting to find the default document. I have answered a question similar in the past, maybe some of these suggestions will help you discover your problem
Also, check your web.config and ensure that this line exists:
Update
Well I certainly did not expect this much attention on my answer… With that said, I can expand a little more on the conversation below. DarinD is expressing concern that the
is a additional burden on your web server, and he is correct. This line will cause IIS to load all modules for any request, including static files. With that said, given the aspects of IIS 7 such as kernel caching, unless you are hosting a very high traffic site/have tons of modules, then the performance impact will most likely not be noticed by you or your users.
If you want to view a potentially different solution, please check out this blog post for more information on the managedModule line above and you can test if the solution posed there fixes your problems as well.
Lastly, here is a blog post that covers not only the potential performance impacts, but goes deeper into how routing works and what you need to do to get extensionless URLs routing on IIS 6 and 7 (which should cover 7.5 as well)