关于重定向到另一个页面的错误。 Asp.net c# [英] Regarding error in redirecting page to another. Asp.net c#

查看:140
本文介绍了关于重定向到另一个页面的错误。 Asp.net c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
当我重定向到asp.net中的其他页面时,出现了这个错误,如下所示:
Firefox已经检测到服务器正以一种永远不会重定向的方式请求这个地址完成。
这个错误到底是什么意思?
谢谢。

解决方案

我发现这是最常见的异常处理程序 Response.Redirect( )的错误页面本身会导致异常。因此,浏览器只是获得一堆HTTP 3xx响应每页它请求和报告你正在描述的错误(而IE将继续不管)。

Hi I got this error when I was redirecting to other page in asp.net as follows : "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." What exactly does this error mean? Thank You.

解决方案

Theres a high chance that whatever page you are redirecting to, is redirecting itself in such a way that you get a "redirection loop" that will never reach completion.

I find this is most common when an exception handler Response.Redirect()'s to an error page which itself causes an exception. Therefore the browser just gets a bunch of HTTP 3xx responses for each page it requests and reports the error you're describing (whereas IE will just carry on regardless).

这篇关于关于重定向到另一个页面的错误。 Asp.net c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
C#/.NET最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆