大家看到這個信息不要怕,這個就說明了你的iis7或iis7.5的下的網(wǎng)站有錯誤。只要找到具體的信息就可以了,跟iis6下的經(jīng)典提示錯誤一樣的。
解決方法:An error occurred on the server when processing the URL. Please contact the system administrator
在WINDOWS7或SERVER2008上安裝了IIS7.5,調(diào)試ASP程序時出現(xiàn)以下錯誤:
An error occurred on the server when processing the URL. Please contact the system administrator
解決方法如下:
設(shè)置方法一:
以管理員身份運(yùn)行CMD,將目錄定位到%windir%/system32/inetsrv/,然后執(zhí)行appcmd set config -section:asp -scriptErrorSentToBrowser:true。
%windir%/system32/inetsrv/appcmd set config -section:asp -scriptErrorSentToBrowser:true
設(shè)置方法二:
打開IIS7的asp設(shè)置,展開“調(diào)試屬性”選項(xiàng),“將錯誤發(fā)送到瀏覽器”這項(xiàng)默認(rèn)的是False,改為True,然后點(diǎn)右側(cè)的應(yīng)用!如圖所示:

通過以上設(shè)置后,再從瀏覽時打開出錯ASP頁面時就能看到頁面出錯的詳細(xì)信息,方使調(diào)試。如果是公開的Web服務(wù)器建議不要打開此選項(xiàng),以防出錯信息被他人利用。
新聞熱點(diǎn)
疑難解答
圖片精選