所有请求都得到HTTP错误401.2

编程入门 行业动态 更新时间:2024-10-07 22:18:33
本文介绍了所有请求都得到HTTP错误401.2 - 未经授权响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的MVC应用程序了,直到几分钟前,(作为解决方案的一部分,与ASP /净籍)已工作的罚款。然而,如果没有故意更改任何相关的每一项要求,甚至对我的HomeController(其中没有任何授权属性等)。

My MVC app has, until a few minutes ago, been working fine (with asp/net membership as part of the solution). However, without knowingly changing anything relevant every request, even to my homecontroller (which doesn't have any authorization attributes etc).

我已经采取了所有条目出的web.config现在有关授权,我已经检查具有以下的对ApplicationHost.config:

I've taken all the entries out of the web.config for now relating to authorization, and I've check the applicationhost.config which has the following:

<access sslFlags="None" /> <applicationDependencies> <application name="Active Server Pages" groupId="ASP" /> </applicationDependencies> <authentication> <anonymousAuthentication enabled="true" userName="" /> <basicAuthentication enabled="false" /> <clientCertificateMappingAuthentication enabled="false" /> <digestAuthentication enabled="false" /> <iisClientCertificateMappingAuthentication enabled="false"> </iisClientCertificateMappingAuthentication> <windowsAuthentication enabled="false"> <providers> <add value="Negotiate" /> <add value="NTLM" /> </providers> </windowsAuthentication> </authentication> <authorization> <add accessType="Allow" users="*" /> </authorization>

任何人都可以提出什么可能会导致此?

Can anyone suggest what may be causing this?

感谢

在此进一步的信息,我切换到现在用完整的IIS和它做工精细,所以它看起来像它的前IIS preSS问题。任何线索的原因是什么?有没有完整的IIS前preSS其他GUI比系统托盘图标?

推荐答案

选项 - 1:

在对ApplicationHost.config检查是否有如下所示的任何条目。如果有任何这样的条目从假到真改变anonymousAuthetication启用值。

In applicationhost.config check if there is any entry as shown below. If there is any such entry change anonymousAuthetication enabled value from 'false' to 'true'.

<location path="YOUR-APPLICATION-NAME"> <system.webServer> <security> <authentication> <anonymousAuthentication enabled="false" /> </authentication> </security> </system.webServer> </location>

选项 - 2:

Option-2:

如果您正在使用Visual Studio,确保anonymousAuthentication已启用。

If you are using visual studio, make sure that anonymousAuthentication is enabled.

更多推荐

所有请求都得到HTTP错误401.2

本文发布于:2023-11-26 21:51:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635336.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   HTTP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!