解決IIS7出現(xiàn)錯誤An error occurred on the server when processing the URL的方法

2011-05-15 20:10:21來源:西部e網(wǎng)作者:

朋友剛剛用我的Windows7下安裝IIS7教程安裝好了IIS,但是發(fā)現(xiàn)運行一個網(wǎng)站出現(xiàn)以下錯誤:

朋友剛剛用我的Windows7下安裝IIS7教程安裝好了IIS,但是發(fā)現(xiàn)運行一個網(wǎng)站出現(xiàn)以下錯誤:

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

其實這是因為IIS7設(shè)置的“腳本錯誤消息”,您也可以通過IIS將里面的內(nèi)容設(shè)置成其他的內(nèi)容。

如何讓ASP程序在調(diào)試的時候顯示錯誤信息而不顯示如上的英文呢?

設(shè)置方法:

在IIS中當(dāng)前網(wǎng)站選擇“ASP”,雙擊。編譯 -> 調(diào)試屬性 -> 將錯誤發(fā)送到瀏覽器設(shè)置為True,然后點擊操作中的“應(yīng)用”。

\

這樣就可以在ASP程序錯誤的時候顯示錯誤代碼和錯誤信息了!

關(guān)鍵詞:IIS7IIS

贊助商鏈接: