我在IIS 7上托管一个网站。当我双击“身份验证”图标时,出现以下错误:
这是来自错误的文本:
There was an error while performing this operation.
Details:
Filename: \\xxxxx\xxx\web.config
Line number: xx
Error: Unrecognized attribute 'ticketCompatibilityMode'
当我跟踪线时,我看到
<forms cookieless="UseCookies" name=".ASPXAUTH" timeout="2160" domain=".hess.com"
loginUrl="~/Authenticate/Logon" enableCrossAppRedirects="true"
slidingExpiration="true" ticketCompatibilityMode="Framework40"
requireSSL="false" />
有任何想法吗?我已经安装了ASP.NET和IIS的所有身份验证组件。我还需要安装一些东西吗?
请检查该属性在webconfig文件中的位置是否正确:
<system.web>
<authentication mode="Forms">
<forms ticketCompatibilityMode="Framework40">
</forms>
</authentication>
</system.web>
另外,您要在哪个服务器上设置此设置?确保它在此功能支持的平台列表中:
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
检查此页面以获取更多信息。
最后,如果不需要此功能,只需将其从web.config文件中删除即可。即使这不是您问题的适当解决方法,也可以解决。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句