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
Reference Links:
IIS7 Publishing MVC3 encountered HTTP error 403.14-forbidden WEB server is configured not to list contents of this directory and login on failed for "IIS apppool\asp.net v4.0" issue
Registering ASP. NET 4.0 to IIS
Publish MVC Error: 403.14-forbidden WEB Server is configured not to list contents of this directory