【发布时间】:2011-08-10 14:48:55
【问题描述】:
我正在使用 c# 进行一些活动目录工作,但我的页面上出现此错误
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.ActiveDs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=46db4b78e98e1c9d' or one of its dependencies. The system cannot find the file specified.
添加的 ActiveDS 参考存在一些问题 我在 64 位机器上,它运行的服务器也是 x64
我添加了 ActiveDS 参考,这样我就可以做这样的事情
newRoleGroup.Properties["groupType"].Value = ActiveDs.ADS_GROUP_TYPE_ENUM.ADS_GROUP_TYPE_UNIVERSAL_GROUP;
所以我的问题是,为什么它不能加载 ActiveDs 引用?
【问题讨论】:
-
仅供参考,您不需要在主题前加上“ASP.NET C#”。我们在Stack Overflow 上有标签,标签做得更好。
标签: c# asp.net active-directory filenotfoundexception