Active Directory无法在IIS7中运行 [英] Active Directory not working in IIS7

查看:82
本文介绍了Active Directory无法在IIS7中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVC4.0应用程序,它使用Windows身份验证在IIS7中托管。在一个屏幕中,我使用活动目录来加载用户详细信息。当我检查我的本地主机时,我能够从Active Directory接收数据,它基于LDAP。但是当我在服务器版本IIs7中托管相同内容时,我无法从活动目录加载数据并将异常视为发生操作错误。



有谁帮我这个?

I have a MVC4.0 application which is hosted in IIS7 with windows authentication. In one screen i am using the active directory for loading the user details . When i checked in my local host i was able to receive the data from active directory and it based on LDAP . but when i hosted the same in server version IIs7 , i am not able to load the data from active directory and getting the exception as ' a operations error occured'.

CAn any one help me in this?

推荐答案

我找到了问题的解决方案。使用Hostenvironment.Impersonate()解决了这个问题。谢谢你花时间解决这个问题。
I found the solution for the problem. Using Hostenvironment.Impersonate() resolved the issue.Thank you who spent time for this problem.


这篇关于Active Directory无法在IIS7中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆