I'm getting the following error when running our ASP.NET Web API project on our production server.
403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.
Looking at the IIS 7.0 error logs the underlying error is
403.14 - Directory listing denied.
I have configured the production server so it has the same settings as the staging server (which works). The authentication, modules, authorization, permissions etc are all identical.
Following a suggestion in this thread 403 - Forbidden: Access is denied. ASP.Net MVC I have managed to get it working by adding runAllManagedModulesForAllRequests="true" to my web.config file.
<modules runAllManagedModulesForAllRequests="true">
Whilst this works I don't see this as a long term solution as it will cause unnecessary load on the server.
So it seems to indicate that something isn't getting loaded that should be getting loaded.