All requests getting HTTP Error 401.2 - Unauthorized response

前端 未结 2 899
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 20:33

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 req

相关标签:
2条回答
  • 2021-01-04 21:00

    Option-1:

    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>
    

    Option-2:

    If you are using visual studio, make sure that anonymousAuthentication is enabled. enter image description here

    0 讨论(0)
  • 2021-01-04 21:01

    This defeats the purpose -- if you enable anonymous auth, you are no longer using Active Directory... here is a better answer ....

    HTTP Error 401.2 - Unauthorized for new site in a working app pool

    0 讨论(0)
提交回复
热议问题