DirectoryEntryObject.Invoke("ChangePassword", new object[] { oldPassword, newPassword } );
throws the following error:
"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Runtime.InteropServices.COMException (0x80020005): Type mismatch.
(Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))
--- End of inner exception stack trace ---
at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args)
Is this something to do with any settings in the AD or I am missing anything?