I'm using a C# web application to search for users in different domain in active directroy. In the actual scenario we have employees from two different domains say for eg: India, US.
我正在使用C#Web应用程序在active directroy中搜索不同域中的用户。在实际情况中,我们有来自两个不同领域的员工,例如:印度,美国。
When the application is hosted in IIS server, I'm not able to retrive users from US domain. When trying to connect to US domain I get the following error:
当应用程序托管在IIS服务器中时,我无法从美国域中检索用户。尝试连接到美国域时,出现以下错误:
> System.Runtime.InteropServices.COMException (0x8007203A): The server
> is not operational. at
> System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at
> System.DirectoryServices.DirectoryEntry.Bind() at
> System.DirectoryServices.DirectoryEntry.get_AdsObject() at
> System.DirectoryServices.DirectorySearcher.FindAll(Boolean
> findMoreThanOne) at
> System.DirectoryServices.DirectorySearcher.FindAll() at
> NovellADTest.AD.btnSyncTest_OnClick(Object sender, EventArgs e)
However, if I run the application on my local machine it works out and fetches users from US domain, but this doesn't work out when hosted in server.
但是,如果我在本地计算机上运行该应用程序,它就会运行并从美国域中获取用户,但这在托管在服务器中时不起作用。
Kindly help me out to solve this issue.
请帮我解决这个问题。
1 个解决方案
#1
0
There may be problem due to different scenarios. Give a try on following.
由于不同的情况可能会有问题。尝试以下。
- Check for Directory Services insufficient permissions .
- It may be a certificate error.
检查目录服务的权限是否不足。
它可能是证书错误。
There is a solution at following link but not sure.. if it will work for u..
以下链接有一个解决方案,但不确定..如果它适用于你..
#1
0
There may be problem due to different scenarios. Give a try on following.
由于不同的情况可能会有问题。尝试以下。
- Check for Directory Services insufficient permissions .
- It may be a certificate error.
检查目录服务的权限是否不足。
它可能是证书错误。
There is a solution at following link but not sure.. if it will work for u..
以下链接有一个解决方案,但不确定..如果它适用于你..