大家看到這個信息不要怕,這個就說明了你的iis7或iis7.5的下的網站有錯誤。只要找到具體的信息就可以了,跟iis6下的經典提示錯誤一樣的。
解決方法:An error occurred on the server when processing the URL. Please contact the system administrator
在WINDOWS7或SERVER2008上安裝了IIS7.5,調試ASP程序時出現以下錯誤:
An error occurred on the server when processing the URL. Please contact the system administrator
解決方法如下:
設置方法一:
以管理員身份運行CMD,將目錄定位到%windir%/system32/inetsrv/,然后執行appcmd set config -section:asp -scriptErrorSentToBrowser:true。
%windir%/system32/inetsrv/appcmd set config -section:asp -scriptErrorSentToBrowser:true
設置方法二:
打開IIS7的asp設置,展開“調試屬性”選項,“將錯誤發送到瀏覽器”這項默認的是False,改為True,然后點右側的應用!如圖所示:
通過以上設置后,再從瀏覽時打開出錯ASP頁面時就能看到頁面出錯的詳細信息,方使調試。如果是公開的Web服務器建議不要打開此選項,以防出錯信息被他人利用。
|
新聞熱點
疑難解答