首页 > 解决方案 > 无限重定向到 ~/Account/Login MVC 5.2.3

问题描述

我有类似的问题,使用站点模板无限重定向到登录页面, 但解决方案对我不起作用,因为在解决方案属性上,Windows auth 已经禁用并且 Anonymous 已经启用。

在 web.config 中,我已经声明了

authentication mode="None" (我也试过authentication mode="Forms">)。

但是,每个请求都会被重定向到无限循环 http://[domain]/Account/Login?ReturnUrl=%2FAccount%2FLogin%3FRetur...

此问题出现在实时托管上,但不在我的本地 iis express 服务器上

另一个类似的问题严重需要帮助,不幸的是没有得到答案

标签: asp.net-mvcweb-configowin

解决方案


@Topher 是的,对于 IIS,我已就该问题联系了我们的托管服务提供商,然后添加了以下设置(在 system.webServer 内部)

        <security>
            <authentication>
                <anonymousAuthentication password="[ (iis generated password) ]" />
            </authentication>
        </security>

什么对我有用。所以简短的回答是:Contact Him

问候


推荐阅读