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

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(转)-LMLPHP

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

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

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

設定的方式如下

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

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(转)-LMLPHP

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

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(转)-LMLPHP

解決~ 收工

05-08 14:53