1. 程式人生 > >解決IIS7中出現An error occurred on the server when processing the URL錯誤提示的方法

解決IIS7中出現An error occurred on the server when processing the URL錯誤提示的方法

在IIS7上除錯程式時,如果程式有錯誤,預設情況下,會提示:

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對ASP程式傳送的一個指令碼錯誤資訊,只要是程式中有錯誤,就會出現這樣的提示。下面的方法是將具體的錯誤資訊顯示出來。

一、開啟 Internet 資訊服務(IIS)管理器。點擊出錯的站點,並雙擊右邊的ASP圖示,如下圖所示:

二、展開右側配置中的“除錯屬性”,把“將錯誤傳送到瀏覽器”的值設為 "true",如圖所示:

題外話:一般ASP程式中,建議將啟用父路徑設為True,