Active Directory COM Exception - An operations error occurred (0x80072020)

前端 未结 8 997
灰色年华
灰色年华 2020-11-28 10:39

I am getting an intermittent COM Exception \"An operations error occurred (0x80072020)\" (shown below) when I try and query Active Directory using the metho

8条回答
  •  余生分开走
    2020-11-28 10:59

    In my case, the web app pool was running as "DefaultAppPool" which did not have sufficient access to connect to Company's Active Directory. So, I impersonated an account which has access to AD in my code and everything worked fine.

提交回复
热议问题