C#Webアプリケーションを使用して、アクティブなダイレクトロイで異なるドメインのユーザーを検索しています。実際のシナリオでは、たとえばインド、米国など、2つの異なるドメインの従業員がいます。
アプリケーションが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)
ただし、ローカルマシンでアプリケーションを実行すると、アプリケーションは機能し、米国のドメインからユーザーを取得しますが、サーバーでホストされている場合は機能しません。
この問題を解決するために私を助けてください。