Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Windows 2012/IIS 8 - 403.14 (Forbidden) - The Web server is configured to not list the contents of the directory

$
0
0

I have a very simple MVC 4 application I'm trying to deploy consistently to a Windows 2012 server.

Inconsistently, when navigating to the root of the web application (http://servername/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:

  • Is a very vanilla VS2012 MVC4 Intranet template -- with only a tweak to a label to prove things were working.
  • runs in an Integrated v4.0 application pool 
  • application pool has a custom AD Identity assigned (so it can gain access to a SQL server)
  • application pool identity has read permissions in the c:\apps\test1 folder in which it is running
  • It's an MVC4 application, targeting .NET 4.0 currently
  • There's no default document in an MVC4 application (like a default.aspx), as there shouldn't need to be one.
  • I don't want to enable directory listings (as that's not the real error).
  • Installed: Roles / Web Server (IIS) / Appliation Development / (.NET 4.5 Extensibility, Application Initialization, ASP.NET 4.5, ISAP Extensions, ISAPI Filters, WebSocket Protocol)
  • Works locally on my machine in IISExpress on Windows 8
  • Is using:
    <modules runAllManagedModulesForAllRequests="true" />

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).

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). 

Solutions or additonal troubleshooting steps welcomed!!


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>