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