asp.net-mvc - 无限重定向到 ~/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 服务器上
另一个类似的问题严重需要帮助,不幸的是没有得到答案
解决方案
@Topher 是的,对于 IIS,我已就该问题联系了我们的托管服务提供商,然后添加了以下设置(在 system.webServer 内部)
<security>
<authentication>
<anonymousAuthentication password="[ (iis generated password) ]" />
</authentication>
</security>
什么对我有用。所以简短的回答是:Contact Him
问候
推荐阅读
- xamarin.forms - 通过绑定启用/禁用效果
- python - 无法让 Discord bot 离开 Python 中的语音通道
- angular - 有条件地扩展接口
- javascript - Javascript访问类:条件后
- makefile - openJPEG 安装: $ make make: *** 没有指定目标,也没有找到 makefile。停止
- java - 适当的 Thymeleaf 输入表单来存储 LocalDateTime
- elasticsearch - 尽管知道它确实存在,但用于电子邮件的 ES curl 没有返回正确的结果
- sql - 在 SQL 中查找一系列行的最新日期
- flutter - 当 cron 中的值更改时,GridView.count() 不更新
- c - C生产者/消费者 - 输出相同的数据并在完成之前卡住