RedirectFromLoginPage 上的异常 ThreadAbortException

发布于 2024-09-28 08:38:01 字数 235 浏览 0 评论 0原文

当人们尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美人如玉 2024-10-05 08:38:01

抛出 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文