System.DirectoryServices.DirectoryServicesCOMException: An operations error occurred

后端 未结 7 805
南笙
南笙 2020-12-01 04:08

I have the same web app working in three others servers. Anyone have any idea why is not working in the 4th server? See the error and stacktrace:

7条回答
  •  青春惊慌失措
    2020-12-01 04:58

    My Experience was little different with this Error. I had to move on-premise application to Azure, where the LDAP call was happening from on-premise, but not from Azure even after opening the required firewall.

    I tried all solution mentioned above, but none of them was helpful. Network service was already selected on Azure VM.

    After lot of hit and trial and research. I fixed it.

    Solution: On-Premise server was having permission to access LDAP and did not required any UserName and Password. But on Azure, you need to specifically make LDAP call with username and Password. Below is the code which helped.

     var directoryEntry= new DirectoryEntry(adspath, Username, Password)
    

提交回复
热议问题