【发布时间】:2014-12-23 18:11:01
【问题描述】:
从
升级网站时是否需要考虑任何特殊Windows 2008 R2 / IIS 7.5
到
Windows 2012 / IIS 8.0 ?
一些可能相关的信息,我不知道,但在我的网站中,我使用 Negotiate:Kerberos 作为我的 Windows 身份验证提供程序,并在我的 服务端点身份。
这是我的错误:
此配置部分不能用于此路径。当该部分锁定在父级别时会发生这种情况。默认情况下锁定 (overrideModeDefault="Deny"),或者由具有 overrideMode="Deny" 或旧版 allowOverride="false" 的位置标记显式设置。
现在,错误是在 <system.webServer> 配置部分下抱怨这一行:
<windowsAuthentication enabled="true" authPersistNonNTLM="true" useKernelMode="false">
这是<system.webServer> 配置部分的精简版:
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="false" />
<basicAuthentication enabled="false" />
<clientCertificateMappingAuthentication enabled="false" />
<digestAuthentication enabled="false" />
<iisClientCertificateMappingAuthentication enabled="false" />
<windowsAuthentication enabled="true"
authPersistNonNTLM="true"
useKernelMode="false">
<extendedProtection tokenChecking="None" />
<providers>
<clear />
<add value="Negotiate:Kerberos" />
</providers>
</windowsAuthentication>
</authentication>
</security>
<!--required for impersonation-->
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
这是<system.serviceModel> 配置部分的精简版:
<system.serviceModel>
<services>
<service name="Deploy.Web.Services.Service"
behaviorConfiguration="DeployServiceBehavior">
<endpoint binding="basicHttpBinding"
bindingConfiguration="DeployBasicHttpBinding"
behaviorConfiguration="DeployEndpointBehavior"
contract="Deploy.Web.Services.IService">
<identity>
<dns value="" />
<servicePrincipalName value="HTTP/SERVERNAME" />
</identity>
</endpoint>
</service>
</services>
</system.serviceModel>
【问题讨论】:
标签: asp.net web-config windows-server-2012 iis-8