COMException “la Bibliothèque n'est pas inscrit. lors de l'utilisation du Système.DirectoryServices

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

  •  09-06-2019
  •  | 
  •  

Question

J'ai tout juste commencé a reçu l'erreur suivante dans mon application windows forms sous .NET 2-cadre sur windows 2000 lors de l'utilisation 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()

J'ai ré-installé le framework et ré-enregistré activeds.dll toutefois, cela n'a pas résolu le problème.Je suppose que j'ai besoin de trouver une autre dll et enregistrez-le à nouveau mais il n'est pas clair qui dll ce serait.

Était-ce utile?

La solution

Ayant utilisé Réflecteur pour faire un petit pic au niveau de l'Annuaire de code de Services, il ressemble à votre Active Directory Service Interfaces, l'installation peut être kaput.

Vous pouvez télécharger la version 2.5 de Technet bien que je ne suis pas sûr si c'est la version la plus récente ou si il fonctionne avec Windows 2000.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top