作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我看到类似的问题,但似乎是由于一个不相关的问题。
在3.5中,我有一个自定义错误处理程序,用于记录错误并重定向用户。我的web.config设置如下:
<httpHandlers>
<add path="error.ashx" type="MySite.Tools.WebErrorLogger, MySite.Tools" verb="*"/>
</httpHandlers>
<customErrors mode="On" defaultRedirect="error.ashx"
redirectMode="ResponseRewrite">
</customErrors>
"ResponseRedirect"
时,一切正常(但是Server.GetLastError()为null,但这似乎是有意的)
ResponseRewrite
时,未调用我的处理程序,并且看到ASP.Net默认错误页面。关于如何执行此操作的任何想法?
最佳答案
好吧,我过去曾问过pretty similar question。
解决方案是将错误页面转换为静态HTML页面。
当然,动态页面上肯定存在某种错误,但是我找不到它。
关于.net - 如果将redirectMode设为=“ResponseRewrite”,则不会将错误重定向到Http处理程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2691758/
我有一个在 IIS 6.0 上运行的 ASP.NET 4.0 MVC Web 应用程序,其 webconfig 自定义错误部分为: 和一个如下所示的 error.aspx 页面: "
In Scott Guthries blog on the ASP.NET Security vulnerability noted here他说对于 ASP.NET 3.5 SP1+,应在自定义错误
浏览器:Firefox 58.0.2(64 位) 我正在尝试写一个 very simple service worker按照指南缓存离线模式的内容 here和 here . 当我第一次加载页面时,Se
我是一名优秀的程序员,十分优秀!