I have a website that I created in Visual Studio 2012 using MVC 4 and the .NET framework 4.5. When I try to run it through IIS 8 on a computer running Windows 8 Pro, I get error 403.14. It says:
"The Prohibited Web Server is configured to not display the contents of this directory.
Most likely, the reasons: The document is not configured by default for the requested URL, and directory browsing on the server is not enabled. "
Here are some things I tried that didn't work:
- Run% windir% \ Microsoft.NET \ Framework \ v4.0.30319 \ aspnet_regiis.exe -i and% windir% \ Microsoft.NET \ Framework \ v4.0.30319 \ aspnet_regiis.exe -ir in both this and the Framework64 directory. This gives the following error: "This option is not supported on this version of the operating system. Administrators should instead install / uninstall ASP.NET 4.5 using IIS8, using the Turn Windows Features On / Off dialog box, Server Management tool or tool dism.exe command line. For more details see http://go.microsoft.com/fwlink/?LinkID=216771 . " The link goes to the Windows Server 2012 page, which does not help. I could not find a specific setting in the "Turn Windows Features On or Off" dialog box for iis 8. Everything related to .net 4.5 is included.
- Add to Web.config. This gives an error: "This configuration section cannot be used along this path. This happens when the section is locked at the parent level. The default lock (overrideModeDefault =" Deny ") or is explicitly set by the location tag with overrideMode =" Deny "or legacy allowOverride = "false". "
I made sure that .net 4.5 is installed on the server (the installer said that it was built into Windows 8 and did not need to be installed). The application pool is the default pool using .net 4.0, an integrated pipeline, with 32-bit applications enabled. I publish the default directory (inetpub \ wwwroot) and the default site that worked there. HTTP redirection is included in Enable or Disable Windows Features
Can anyone tell more about themselves?
EDIT: Well, of course, right after I posted this, I found something that works. Hover over your mouse.
In the section "Turning Windows features on and off" in the section "Internet Information Services" → "World Wide Web Services" → "Application Development Features", make sure that .NET Extensibility 3.5, .NET Extesibility 4.5, ASP.NET 3.5, ASP.NET 4.5, ISAPI extensions and ISAPI filters are selected.
This has been described here: http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45#TOC301258515 , but since this applies to server 2012 instead of Windows 8, I could not find the right place for these settings.
Hope this helps anyone who has a similar problem. Thanks for reading.
windows-8 asp.net-mvc iis asp.net-mvc-4 iis-8
RossD Dec 24 '12 at 20:26 2012-12-24 20:26
source share