我正在使用C#进行一些Active Directory工作,但我的页面上出现了以下错误:
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引用?