asp.net-mvc-3 - Firefox 页面未正确重定向

标签 asp.net-mvc-3 firefox google-chrome

当我访问 上的特定网址时我在 Firefox 中收到此错误。有问题的页面是登录屏幕。

页面未正确重定向

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies.

Chrome 说

This web page has a redirect loop The web page at has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

Here are some suggestions:
Reload this web page later.
Learn more about this problem.

为什么会发生这种情况?重新加载几次后问题就消失了。

最佳答案

打开Fiddler (download)查看请求,您会发现一些 HTTP 重定向计数,然后浏览器将停止并显示此类消息。您需要调试您的应用程序,也许这是一些交叉重定向、自定义返回 url 逻辑或其他任何内容,没有代码很难理解发生了什么。

关于asp.net-mvc-3 - Firefox 页面未正确重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13397105/

相关文章:

javascript - PHP 代码在 chrome 中返回空,在 firefox 中返回值,我该如何调查原因?

javascript - 突出显示 Chrome 扩展中的所有单词

javascript - 争论异步 chrome.history 调用

c# - 如何制作 Response.Write(...);在我的 Controller 中

linq - 如何将用户表正确连接到成员资格表,或者您是否应该这样做?

asp.net-mvc-3 - Razor 注释语法

javascript - 您如何使用 javascript 在 FF 中切换 div 的可见性? (IE 和 Chrome 工作正常)

javascript - 在 Firefox OS 验证器中检测到 CSP 违规

google-chrome - Google Chrome 用户界面是如何工作的?

c# - 以文件扩展名结尾的 Asp.net MVC 路由