I have a very simple MVC 4 application I'm trying to deploy to a Windows 2012 server.
Inconsistently, when navigating to the root of the web application (http://localhost/app
), it returns a 403.14-Forbidden
:
Detailed Error Information:
Module: DirectoryListingModule
Notification: ExecuteRequestHandler
Handler: StaticFile
Error Code: 0x00000000
Requested URL: http://localhost:80/test1/
Physical Path: c:\apps\test1\
Logon Method: Negotiate
The web application is:
<modules runAllManagedModulesForAllRequests="true" />
When I change the precompiled option to false
, the web application does not fail (in my testing at least, it seems to work consistently).
The reason I say it's inconsistent is that I've seen it work, then I've published, and the error returns. I can't find a pattern to the issue (and right now, I haven't been able to get it work again, at all).
The 403 is returned from a local or remote web browser.
I've had trouble finding a solution that isn't intended for older versions of Windows (like suggestions to reinstall ASP.NET which won't work on Windows 2012).
I really don't know what else to try.
Just spotted "custom AD Identity" in there.
2012 is new enough that I don't know its error quirks but those are pretty all good places to start when getting 403 forbidden.
I have the same problem. I had searched so much time and did all instructions in this link. I've setup my application like yours; but it doesn't work at all. Finally, I found out that: When I choose precompile during publishing, I must set AssemblyCulture is empty string (In Properties/AssemblyInfo.cs file) For example:
[assembly: AssemblyCulture("")]
If I set like the following, it doesn't work
[assembly: AssemblyCulture("fr-FR")]
I had a similar problem, and my answer was this:
http://technet.microsoft.com/en-us/library/cc731598
I had the add the IP of the machine accessing the service. I didn't know that this had been enabled.
User contributions licensed under CC BY-SA 3.0