RedirectFromLoginPage 上的异常 ThreadAbortException
当人们尝试使用 IE8 登录我的系统时,我遇到了一些麻烦。 明天之前一切都很好,但现在当他们尝试登录调用 RedirectFromLoginPage 方法的线路时会抛出 ThreadAbortException 异常。
经过一番调查后,我发现如果我将 createPersistentCookie 更改为 false,他们可以正常登录。
有人可以帮助我解决为什么会发生这种情况吗?
谢谢大家,对不起我的英语!
I'm having some trouble when people try to log on my system in IE8.
Before tomorrow everything is fine, but now when they try to log on the line who call RedirectFromLoginPage method throws ThreadAbortException exception.
After some investigating i found that if i change createPersistentCookie to false they can log normally.
There is anyone to help me with some ideias why this is occurring ?
Thanks everyone and sorry my english !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抛出 ThreadAbortException 是为了停止线程的执行。这本身并不是一个错误。
当立即完成重定向(未完成请求)时,将抛出 ThreadAbortException 来完成此操作。
ThreadAbortException is thrown in order to stop the execution of a thread. It's not an error in itself.
When a redirect is done immediately (without completing the request) a ThreadAbortException is thrown to accomplish this.