DirectoryEntry.Invoke()在“ChangePassword”调用上抛出错误

时间:2010-07-30 12:27:27

标签: c# active-directory

DirectoryEntryObject.Invoke("ChangePassword", new object[] { oldPassword, newPassword } );会抛出以下错误:

  

“System.Reflection.TargetInvocationException:   例外已被抛出   调用的目标   ---> System.Runtime.InteropServices.COMException   (0x80020005):类型不匹配   (来自HRESULT的例外:0x80020005   (DISP_E_TYPEMISMATCH))
  ---内部异常堆栈跟踪结束---
  在System.DirectoryServices.DirectoryEntry.Invoke(String   methodName,Object [] args)

这与AD中的任何设置有关,或者我遗漏了什么?

1 个答案:

答案 0 :(得分:0)

相关问题