I'm developing my MVC 5 app using VS 2013, it was working fine, but suddenly it's giving the following error.
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
I've already read this post, and it didn't solve the problem.
I've tried the followings:
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
- setting
runAllManagedModulesForAllRequests
insystem.webServer
totrue
. - setting
owin:AutomaticAppStartup
tofalse
. - Restarting VS and Windows!
- Publishing the app and trying to run it on IIS (I'm using Win 8.1).
- I'm sure no one played with permissions.
- I've turned on .NET Extensibility 3.5.
- I've copied the project on a local disk and tried to run it there.
I was developing a custom User Store and that's why I've tried to disable owin configuration (but I didn't change anything in global.asax
or web.config
during the development.)
When I run the app, for a second and before that error, I can see the correct title. And I can run other apps just fine.
I've put a break point and the following exception was the first item in the IntelliTrace. Can it have anything to do with the error?
Exception:Caught: "Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\~AspAccessCheck_75bc30d35780.tmp' is denied." (System.UnauthorizedAccessException) A System.UnauthorizedAccessException was caught: "Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\~AspAccessCheck_75bc30d35780.tmp' is denied."