COMException“图书馆未注册”。同时使用System.DirectoryServices [英] COMException "Library not registered." while using System.DirectoryServices

查看:323
本文介绍了COMException“图书馆未注册”。同时使用System.DirectoryServices的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始收到以下错误在窗体窗体应用程序下的.NET 2框架在Windows 2000上使用 System.DirectoryServices

I have only just started received the following error in my windows forms application under .NET 2 framework on windows 2000 when using 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。

I have re-installed the framework and re-registered activeds.dll however this has not resolved the issue. I am guessing I need to find another dll and re-register it however it is not clear which dll this would be.

推荐答案

使用 Reflector 在目录中快​​速达到峰值服务代码,它看起来像您的Active Directory服务接口安装可能是kaput。

Having used Reflector to have a quick peak at the Directory Services code, it looks like your Active Directory Service Interfaces installation might be kaput.

您可以从 Technet 虽然我不知道是否是最新版本或者它是否与Windows 2000一起使用。

You can download version 2.5 from Technet although I'm not sure if it's the latest version or if it works with Windows 2000.

这篇关于COMException“图书馆未注册”。同时使用System.DirectoryServices的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆