Dear all,
I was struggling with an error in ASP.NET. The error was coming when i implemented Ad (Active Directory) password change code in one of my forms. It some times worked but sometimes it gave the following error
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: Invalid access to memory location. (Exception from HRESULT: 0x800703E6) --- End of inner exception stack trace --- at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args) at _adPassword.ChangeUserADPassword(String Username, String Password, String newPwd)
I searched a lot and then found a solution for this problem. The problem was the CPU overload on the server. The server CPU usage when moved above 75-90% this form resulted this error. I recycled the Application pool and also made some changes on the server to maintain the CPU usage below 75%. This solved the problem and now i don't face any sort of problem with this form.
Thanks
Ritesh Tandon
I was struggling with an error in ASP.NET. The error was coming when i implemented Ad (Active Directory) password change code in one of my forms. It some times worked but sometimes it gave the following error
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: Invalid access to memory location. (Exception from HRESULT: 0x800703E6) --- End of inner exception stack trace --- at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object[] args) at _adPassword.ChangeUserADPassword(String Username, String Password, String newPwd)
I searched a lot and then found a solution for this problem. The problem was the CPU overload on the server. The server CPU usage when moved above 75-90% this form resulted this error. I recycled the Application pool and also made some changes on the server to maintain the CPU usage below 75%. This solved the problem and now i don't face any sort of problem with this form.
Thanks
Ritesh Tandon
No comments:
Post a Comment
Comments are welcome, Please join me on my Linked In account
http://in.linkedin.com/pub/ritesh-tandon/21/644/33b