解决mvc部署在IIS上以后出现404错误

首先:aspnet_regiis -i

如果还不行,更改web.config文件,添加红色的部分


 <system.webServer>

<modules runAllManagedModulesForAllRequests="true">
...
</modules>
</system.webServer>


应该可以了

 
原文地址:https://www.cnblogs.com/lummon/p/3597602.html