Hey.. i am trying to unlock and reset password in the Active Directory..
The code is working fine for some of the employees...
but it is giving errors for some employee ids..
it is giving below errors
1) General Access Denied ---> No idea why access is denied to unlock some empid's
2) Exception has been thrown by object of invocation --> Not sure
3) Object reference not set to instance of an object... ---> Empid may not exist in Active Directory