customErrors和httpErrors的區別

一、對比 customErrors 用於捕捉ASP.NET觸發的錯誤,靜態html頁面或目錄不存在等錯誤,不會被捕捉到。 httpErrors 用於捕捉IIS觸發的錯誤,IIS7+版本才支持。 二、配置文件 1.IIS7+: <system.web>     <customErrors mode="On" defaultRedirect="Error.html">         <error s
相關文章
相關標籤/搜索