Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi We have been using ChilkatDotNet.dll Version 8.2.0 with .Net Framework. We use Chilkat.MIME and Chilkat.Crypt2 classes. The Framework version of ChilKatDotNet.dll is working But the ChilkatDotNet4.DLL is not working with Similar functional.

The Old Working Code:

Dim _tempMime As String = Incoming Data
_Body = New Chilkat.Mime
Dim _EncodedContent As Byte() = System.Text.Encoding.GetEncoding(1252).GetBytes(_tempMime)_Body.LoadMimeBinary(_EncodedContent)
Dim _crypt As New Chilkat.Crypt2 _crypt.CryptAlgorithm = "PKI"
_RawContent = _crypt.DecryptBytes(_Body.GetBodyBinary())

New and not working code:
Dim _tempMime As String = Incoming Data
_Body = New Chilkat.Mime
Dim _EncodedContent As Byte() = System.Text.Encoding.GetEncoding(1252).GetBytes(_tempMime)_Body.LoadMimeBytes(_EncodedContent)
Dim _crypt As New Chilkat.Crypt2 _crypt.CryptAlgorithm = "PKI"
_RawContent = _crypt.DecryptBytes(_Body.GetBodyBinary())

Only Change is that LoadMimeBinary is not available ChilkatDotNEt4.dll so using LoadMimeBytes.
here LoadMimeBinary(ChilkatDotNet.dll ) and LoadMimeBytes(ChilkatDotNet4.dll) methods returns same value of bytes.

With this _crypt.DecryptBytes returns 0 Bytes.
chilkat log file logged the message as "Found matching certificate, but no private key is available."

Thanks Advance.
Posted
Updated 16-May-13 19:45pm
v4
Comments
[no name] 16-May-13 5:33am    
http://www.chilkatsoft.com/support.asp

1 solution

Your sinlge best source of information on using a 3rd party library is the manufacturer of the library. Chances are really, really good that none of the regular visitors here has ever heard of any one library, or, if they have, have ever used it.

You don't walk into a BMW dealership if you're got questions about your Tata motors car.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900