之前服务器用的都是2003Server的服务器,发布mvc项目都没问题,今天换了一台机器,系统为Windows Server2008 R2  64位的发布mvc项目后就提示:

IIS7发布asp.net mvc提示404.0

百度看到好多人说在web.config文件中添加modules runAllManagedModulesForAllRequests="true"配置项就能解决问题。

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

 至少我添加了没能解决问题,后面涨转google中寻找答案,发现既然是我的Windows Server2008 R2 系统的问题。

通过打了补丁之后问题解决。

官方补丁地址:http://support.microsoft.com/kb/980368   需要通过邮箱下载。

或者:https://files.cnblogs.com/liluping860122/407288_intl_x64_zip.rar  直接点击下载。

 

相关文章:

  • 2021-05-26
  • 2022-02-17
  • 2021-11-05
  • 2021-12-23
  • 2022-01-23
  • 2021-12-28
猜你喜欢
  • 2022-12-23
  • 2021-04-25
  • 2021-07-07
  • 2021-06-29
  • 2022-12-23
  • 2021-08-18
相关资源
相似解决方案