System.DirectoryServices の使用中に "ライブラリが登録されていません" という COMException

StackOverflow https://stackoverflow.com/questions/34270

  •  09-06-2019
  •  | 
  •  

質問

Windows 2000 上の .NET 2 Framework で Windows フォーム アプリケーションを使用しているときに、次のエラーが発生し始めたばかりです。 System.DirectoryServices.

    {System.Runtime.InteropServices.COMException}
System.Runtime.InteropServices.COMException: {"Library not registered."}
_className: Nothing
_COMPlusExceptionCode: -532459699
_data: Nothing
_dynamicMethods: Nothing
_exceptionMethod: Nothing
_exceptionMethodString: Nothing
_helpURL: Nothing
_HResult: -2147319779
_innerException: Nothing
_message: "Library not registered."
_remoteStackIndex: 0
_remoteStackTraceString: Nothing
_source: Nothing
_stackTrace: {System.Array}
_stackTraceString: Nothing
_xcode: -532459699
_xptrs: 0
Source: "System.DirectoryServices"
StackTrace: "   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()

フレームワークを再インストールして再登録しました activeds.dll ただし、これでは問題は解決されていません。別の DLL を見つけて再登録する必要があると思いますが、どの DLL になるかは不明です。

役に立ちましたか?

解決

使用した後 リフレクター ディレクトリ サービスのコードを簡単に理解するには、Active Directory サービス インターフェイスのインストールが完了している可能性があります。

バージョン 2.5 は次からダウンロードできます。 テクネット ただし、それが最新バージョンであるかどうか、または Windows 2000 で動作するかどうかはわかりません。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top