我已经在互联网上寻找这个问题,没有具体说明如何解决我的问题。
它是一个托管在IIS7上的非常小的web应用程序。在我的web.config中,我有这样的代码:
<system.web>
<authorization>
<allow users="WORKGROUP\SOMEONE"/>
<deny users="?"/>
</authorization>
<roleManager enabled="true" />
<compilation debug="true" targetFramework="4.0" />
</system.web>当我访问我的网站时,它给出以下错误
401 - Unauthorized: Access is denied due to invalid credentials.我只想验证一个域用户,并且我认为我已经正确地使用了所有内容。请指点我这里我错过了什么
发布于 2012-11-15 19:26:16
您需要安装Windows身份验证并在IIS网站上启用它。
有关如何在Windows7和Windows Server2008R2上安装和配置Windows身份验证的详细信息,请参阅此帖子:http://www.iis.net/configreference/system.webserver/security/authentication/windowsauthentication
https://stackoverflow.com/questions/13395856
复制相似问题