Archived Forum Post

Index of archived forum posts

Question:

System.AccessViolationException in ClsHttp.SynchronousRequest

Oct 11 '13 at 13:12

I'm getting following error on service hosted on IIS.

Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: at <module>.ClsHttp.SynchronousRequest(ClsHttp, XString, Int32, Boolean, ClsHttpRequest, ProgressEvent) at Chilkat.Http.SynchronousRequest(System.String, Int32, Boolean, Chilkat.HttpRequest) at...

One more tough thing is that this call is done in try{}catch() block but the exception somehow pass it and crash the hosting pool.

Is there a way to get any additional info what is causing the exception? Can I configure some logs? What is the cause of this exception?

regards,


Answer

Make sure you're using the latest version of Chilkat. If you're using an older version, it's very likely this has already been fixed. If the problem still exists with the new version, use the DebugLogFilePath property in conjunction with the VerboseLogging property (turn on verbose logging) to get a log file that provides details about what the internal code was doing just prior to the problem.