我有1个站点需要授权IP才可以访问,我想通过web界面方式操作该站点的IP地址和域设置,是使用System.DirectoryServices来实现的。
我本地是win7系统iis7.5,服务器是windows 2008R2 iis7.5,我在本地已经测试通过了,可上线后报出如下错误
错误描述: System.Runtime.InteropServices.COMException (0x80029C4A): 加载类型库/DLL 时出错。
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
求解决方案