所有请求都得到HTTP错误401.2 - 未经授权响应 [英] All requests getting HTTP Error 401.2 - Unauthorized response

查看:1096
本文介绍了所有请求都得到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 - 未经授权响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆