1.看IIS中處理程序映射中有沒有注冊:ExtensionlessUrlHandler-Integrated-4.0
沒有的話需要在【運行】中注冊:aspnet_regiis.exe
2.配置文件中要加 <modules runAllManagedModulesForAllRequests="true" />
<system.webServer>
<validationvalidateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
在web.config增加<modules runAllManagedModulesForAllRequests="true" />
如果還不行,請檢查一下“處理程序映射”,里面是否有“ExtensionlessUrlHandler-Integrated-4.0”,如果沒有,請注冊.net4.0
在運行里輸入:C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
3.IIS應用程序池集成模式,標識中把最高權限的用戶添加進來: