MVC4發佈到IIS,出現HTTP 錯誤 404.0 - Not Found的解決方法

MVC4發佈到IIS,出現HTTP 錯誤 404.0 - Not Found的解決方法web

1.出現的錯誤頁面服務器

 

2.定位緣由,由於web.config中有配置4.5而實際服務器只裝了4.0,致使沒有辦法解析。出現上述錯誤post

 

3.解決辦法網站

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

blog

從新啓動網站,回收,再次查看,就能夠運行了。module

相關文章
相關標籤/搜索