IIS抱怨身份模拟使用LDAP身份验证 [英] IIS complaining about Identity Impersonation using LDAP Authentication
问题描述
我也跟着教程来实现在ASP.NET/C# 4.0 Web应用程序的LDAP认证。我这样做是在Visual Studio 2010中的网站运行在通过Visual Studio调试模式很好,但是当我发表这个网站在IIS7,它与下面的错误而失败:
I followed a tutorial to implement LDAP authentication in an ASP.NET/C# 4.0 web application. I did so in Visual Studio 2010. The site runs fine in debug mode through Visual Studio, but when I publish this site in IIS7, it is failing with the following error:
HTTP错误500.24 - 内部服务器错误的ASP.NET设置已经
检测不适用综合托管管道模式。
HTTP Error 500.24 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
最可能的原因:
- system.web/identity@impersonate设置为true。
在事实上,我将其添加到配置文件所需的教程的一部分...
In fact, part of the tutorial required that I add this to the config file...
<identity impersonate="true"/>
那么,为什么我会得到这个错误,我该如何解决这个问题?
So why would I be getting this error and how do I fix it?
推荐答案
试着改变你的应用程序池的管道模式为经典
Try changing your application pool's pipeline mode to 'Classic'
您打开IIS做到这一点 - >应用程序池 - >右键单击应用程序池,然后选择基本设置 - >管理pipline模式,更改为经典
You do this by opening IIS -> Application Pools -> Right-click your application pool and select Basic Settings -> Managed pipline mode, change to Classic
重新启动应用程序池和网站(不应该需要,但绝不会伤害尝试),然后再试一次。
Restart your app pool and site (shouldn't need to but never hurts to try) and try again.
你可以尝试,而不是上面,另一件事,就是把你的的web.config
文件下面,在&LT内部;系统.webServer&GT;
节点:
Another thing you can try, instead of the above, is to put the following in your web.config
file, inside the <system.webServer>
node:
<validation validateIntegratedModeConfiguration="false" />
这篇关于IIS抱怨身份模拟使用LDAP身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!