朋友剛剛用我的Windows7下安裝IIS7教程安裝好了IIS,但是發(fā)現(xiàn)運(yùn)行一個(gè)網(wǎng)站出現(xiàn)以下錯(cuò)誤:
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.
其實(shí)這是因?yàn)镮IS7設(shè)置的“腳本錯(cuò)誤消息”,您也可以通過IIS將里面的內(nèi)容設(shè)置成其他的內(nèi)容。
如何讓ASP程序在調(diào)試的時(shí)候顯示錯(cuò)誤信息而不顯示如上的英文呢?
設(shè)置方法:
在IIS中當(dāng)前網(wǎng)站選擇“ASP”,雙擊。編譯 -> 調(diào)試屬性 -> 將錯(cuò)誤發(fā)送到瀏覽器設(shè)置為True,然后點(diǎn)擊操作中的“應(yīng)用”。
這樣就可以在ASP程序錯(cuò)誤的時(shí)候顯示錯(cuò)誤代碼和錯(cuò)誤信息了!