【发布时间】:2010-08-28 08:43:49
【问题描述】:
我已经在我的 web.config 中添加了这个:
<customErrors mode="RemoteOnly" defaultRedirect="~/Site/Statics/Eroare.aspx">
<error statusCode="404" redirect="~/Site/Index.aspx" />
</customErrors>
好吧,在 Eroare.aspx 页面上的 Page_Load 方法中,我尝试将导致此重定向的错误打印到我的内部日志,但 Server.GetLastError() 为空...
你知道为什么吗?或任何其他解决方案来获得异常?
谢谢。
【问题讨论】:
标签: asp.net