在IIS7或是IIS7.5中要使用asp,當出現錯誤時是只會顯示

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.


如果想要debug的話,這樣子是看不出來的,
所以必須要在IIS的控制台中去更改設定,
找到下圖中的『將錯誤傳送到瀏覽器』,把『false』改成『true』,並按下『套用』就可以了。
IIS7.5
記得把bug改好之後,再把此選項改回來預設值『false』,避免被看到錯誤點。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *