Click here to Skip to main content
15,669,133 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Bernhard Hiller 16-Jan-14 2:32am    
Is the server computer a member of the same domain?
Sowjanya49183 16-Jan-14 2:50am    

1 solution

I found the solution for the problem. Using Hostenvironment.Impersonate() resolved the issue.Thank you who spent time for this problem.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900