之前伺服器用的都是2003Server的伺服器,釋出mvc專案都沒問題,今天換了一臺機器,系統為Windows Server2008 R2 64位的釋出mvc專案後就提示:
百度看到好多人說在web.config檔案中新增modules runAllManagedModulesForAllRequests="true"配置項就能解決問題。
<system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer>
至少我新增了沒能解決問題,後面漲轉google中尋找答案,發現既然是我的Windows Server2008 R2 系統的問題。
通過打了補丁之後問題解決。
官方補丁地址:http://support.microsoft.com/kb/980368 需要通過郵箱下載。
或者:http://files.cnblogs.com/liluping860122/407288_intl_x64_zip.rar 直接點選下載。