HI,
I am getting an error "Exception has been thrown by the target of an invocation" when I executing the following code.
User "abc" is already created under the OU(Sas).
Try
Dim myDirectoryEntry As DirectoryEntry
myDirectoryEntry = New DirectoryEntry("LDAP://myserver/CN=abc,OU=Sas,DC=com")
myDirectoryEntry.Invoke("SetPassword", "NewPassword")
myDirectoryEntry.CommitChanges()
Catch ex As Exception
MsgBox(ex.message)
End Try
any one please give suggestion about it.
(any permission we have to set in ADS/IIS)
--------------------------------
From: vishwa h
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>PBtlyKYXWE2T61a2A6s5Sw==</Id>