Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager. In the Connections pane, expand the server name, expand Sites, and then select the site, application or Web service for which you want to enable Extended Protection for Windows authentication. Scroll to the Security section in the Home pane, and then double-click Authentication. In the Authentication pane, select Windows Authentication. Click Enable in the Actions pane. Click Advanced Settings in the Actions pane.
在web.config中<authentication mode="Windows" />
集如果我从VS2010开始应用之后 - 一切运作良好。 如果其他我从IIS启动应用程序我有问题。 请求的用户数据我输入Computer \ NameUser。 然后一个错误:
Error HTTP 401.2 - Unauthorized You have no right to view this page because of the inadmissibility of the authentication header.
更新:
UPDATE2: 文件:C:\ WINDOWS \ SYSTEM32 \ INETSRV \设置\对ApplicationHost.config
<location path="windowsAuthTest">
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="false" userName="User" password="[enc:AesProvider:BZ7e2mkTjJL7Wo8xMm2PQKZ2biP1nKB2SjAfw9WmJoBhkMbl4DYqEJU0bzIj3CxF:enc]" />
<windowsAuthentication enabled="true" useKernelMode="false">
<extendedProtection tokenChecking="None" />
<providers>
<clear />
<add value="NTLM" />
<add value="Negotiate" />
</providers>
</windowsAuthentication>
</authentication>
</security>
</system.webServer>
</location>
哪个版本的IIS? –
@Steve B,iis 7 – Mediator