V
vishwa h via .NET 247
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)
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)