Publish MVC Error: 403.14-forbidden WEB Server is configured not to list contents of this directory6. August 08:08/WCF/ MVC/Comments (0)
There are two places to configure:
Nodes in the 1.web.config:
<system.webServer> <validation validateintegratedmodeconfiguration= "false"/> <modules Runallmanagedmodulesforallrequests= "true"/></system.webserver>
You need to add an attribute in the modules configuration runallmanagedmodulesforallrequests
2. If the previous step does not work, you need to "add a script map"
- Open the "Handler mapping Settings" for IIS and "Add script map" under the action Bar on the right
- Request Path: *
- Executable file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
If these two steps do not work, then re-register the. NET Framework test, of course, this step can also be ranked first.
32-bit Windows:
---------------------------------------------------------------------------
1. Running->cmd
2. CD C:\Windows\Microsoft.NET\Framework\v4.0.30319
3. Aspnet_regiis.exe-i
64-bit Windows:
---------------------------------------------------------------------------
1. Running->cmd
2. CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319
3. Aspnet_regiis.exe-i
Publish MVC Error: 403.14-forbidden WEB Server is configured not to list contents of this directory