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