3

我正在使用 C# Web 应用程序在活动目录中搜索不同域中的用户。在实际场景中,我们有来自两个不同领域的员工,例如:印度、美国。

当应用程序托管在 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)

但是,如果我在本地计算机上运行该应用程序,它会运行并从美国域中获取用户,但是当托管在服务器中时这不起作用。

请帮我解决这个问题。

4

1 回答 1

0

由于场景不同,可能会出现问题。尝试跟随。

  1. 检查目录服务权限不足。
  2. 可能是证书错误。

以下链接有一个解决方案,但不确定..它是否适合您..

http://forums.asp.net/t/1096070.aspx/1

于 2012-09-25T07:04:27.403 回答