ASP.Net debug directory monitoring HttpException

你离开我真会死。 提交于 2019-11-28 01:51:54

The good news: it doesn't seem to have any knock-on effects

The bad news: I haven't figured out the cause or a solution

The workaround: Disable break-on-exception for HttpException (Debug->Exception), and filter these out in your logs. You can still capture other HttpException in debug mode by placing a breakpoint in Application_Error (if you have implmented it - but you should have anyway)

I faced the same problem and by checking the Enable Just My Code checkbox option in the Options: Tools->Options->Debugging->General, I got it working.

I had similar exception when I am troubleshooting HttpException arising in Application_Error itself while redirecting to Error/Index action. I had to uncheck HttpException in Debug > Exceptions dialog to remove this error. Then it redirected to Error/Index as expected without any side-effects from this mysterious exception. At that time Visual studio is in debugging mode.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!