Pregunta

Recién comencé a recibir el siguiente error en mi aplicación de formularios de Windows en .NET 2 framework en Windows 2000 cuando uso 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()

He reinstalado el framework y me he vuelto a registrar activeds.dll sin embargo, esto no ha resuelto el problema.Supongo que necesito encontrar otro dll y volver a registrarlo, sin embargo, no está claro qué dll sería.

¿Fue útil?

Solución

habiendo usado Reflector Para echar un vistazo rápido al código de Servicios de Directorio, parece que la instalación de las Interfaces de Servicio de Active Directory podría estar dañada.

Puede descargar la versión 2.5 desde tecnet aunque no estoy seguro si es la última versión o si funciona con Windows 2000.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top