We have developed an appllication for reset and change password of users in AD. The error i am facing is that, when a users tries to reset the password it gives the below error in the application, but the password is reset.
6/28/2010 11:43:57 AM\UserName=ABGPLANET\ilmtest\Exception: Exception has been thrown by the target of an invocation.\System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\ at System.DirectoryServices.DirectoryEntry.Invoke(String
methodName, Object[] args)
at CLassPMP.ResetUserPassword(String strUser, String strPassword, String strDomain, String& strServerFailure)
at CLassPMP.SendSMS(String domain, String userName, String& strMailAvilablility)
at ForgotPwd.btnSubmit_ServerClick(Object sender, EventArgs e)
Can anyone help!!!!