HTTP Error 404.2 - Not Found The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server(转)

今天公司的同事問我,為什麼同一支程式在自己的電腦OK,部署到Server上會出現下面的錯誤

image

我想,沒有錯啊~ 我在這台Server所部署的程式一向都是OK的

看了錯誤的Error page, 發現是ISAPI-4.0_64bit的問題

才發現原來同事所寫的Asp .net是用.net framework 4.0

 

設定的方式如下

1. 進IIS後,選到右下的「ISAPI and CGI Restrictions」

image

2. 將ASP .Net v4.0.*的啟用

image

解決~ 收工

posted @ 2013-12-25 09:33  遥望星空  阅读(806)  评论(0编辑  收藏  举报