Archived Forum Post

Index of archived forum posts


System.AccessViolationException in Chilkat RSA DecryptStringENC

Mar 26 '14 at 15:06

Hello, I am using RSA library to encrypt / decrypt data and get the following error:

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>.ClsRsa.DecryptStringENC(ClsRsa, XString, Boolean, XString*) at Chilkat.Rsa.DecryptStringENC(System.String, Boolean)

This error does not always present so that it can not be happening.

Please if you could help me



The 1st step is to make sure you're using the very latest version of Chilkat (v9.5.0 at the time of this post).

If the problem remains, then set the Chilkat.Rsa.DebugLogFilePath property equal to the log file that you want it to create. The DebugLogFilePath property is standard on all Chilkat classes/objects.

Do this:

  1. Delete the DebugLogFilePath log file just prior to calling DecryptStringENC because the DebugLogFilePath is always appended and will grow without limit.
  2. Set the DebugLogFilePath just prior to the call to DecryptStringENC.
  3. Clear the DebugLogFilePath property just after the call to DecryptStringENC.
  4. Make sure verbose logging is turned on for the Chilkat.Rsa object. (Set the Rsa.VerboseLogging property = true)

With this in place, then if a crash occurs within DecryptStringENC, then you'll be left with a verbose log file that can help isolate the location of the problem.


Thank you very much for answering ...

The version I am using is the 9.3, I'll keep the 2 solutions raised and see if the problem is solved. This just gives me in the production environment as a similar test environment does not happen