问题描述
我想允许所有用户访问Anonymous.aspx
页,我已将基本身份验证设置为已启用,并且以特定用户身份连接.
i want to allow access to Anonymous.aspx
page to all user,i have set Basic Authentication to Enabled, and Connect as to specific user.
我的问题是,当尝试访问http://MyIPAddress/MyAlias/Anonymous.aspx
时,出现身份验证弹出窗口-理想情况下不应该出现,并且当我关闭弹出窗口时,出现401.2 Unauthorized error
-很明显
my problem is when trying to access http://MyIPAddress/MyAlias/Anonymous.aspx
, authentication popup appears--ideally it shouldn't, and when i close popup, getting 401.2 Unauthorized error
--it's obvious
错误摘要
HTTP错误401.2-未经授权由于身份验证标题无效,因此您无权查看此页面.错误代码0x80070005
HTTP Error 401.2 - UnauthorizedYou are not authorized to view this page due to invalid authentication headers.Error Code 0x80070005
下面是我的web.config文件的快照.
below is snap of my web.config file.
<configuration>
<system.web>
<authentication mode="Windows"/>
</system.web>
<location path="Anonymous.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>
我该如何解决此错误.
推荐答案
确保在IIS->身份验证上启用了匿名访问.
Make sure Anonymous access is enabled on IIS -> Authentication.
但也可以右键单击它,然后单击编辑",然后选择域\用户名和密码. (具有访问应用程序的物理文件夹的权限.)
But also right click on it, then click on Edit, and choose a domain\username and password. (With access to the physical folder of the application).
这篇关于HTTP错误401.2-未经授权由于身份验证标头无效,您无权查看此页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!