Chilkat 9.0.3 Release Notes

SMTP (MailMan) Added the MailMan.SendMimeBytes method to allow for sending the exact MIME source of an email from a byte array. This is useful for emails that have 8bit encodings. (With ActiveX, byte arrays are passed as Variants containing a byte array.) This method is also useful for sending DKIM signed email, because the output of the Chilkat.Dkim signature creation […]

SFTP Server Error Messages – sometimes obscure and misleading

Two recent customer support issues prompted this post.  In both cases, the error reported by the SFTP server was both lacking in information as well as somewhat misleading.  One brand of server was: SSH-2.0-http://www.sshtools.com J2SSH [SERVER] The other was: SSH-2.0-WS_FTP-SSH_7.1 With the 1st SSH server, the following error occurred when trying to open a file: OpenFile: DllDate: Jun 10 2009 […]

Chilkat 9.0.2 Release Notes

RSA Fixed PEM to XML conversion so that XML is compatible with .NET Framework’s XML requirements. Fixed RSA key generation. In some cases, RSA generated keys were not valid. Verified key acceptance and signature matching between Chilkat, OpenSSL, and .NET MIME / DKIM Fixed DKIM and DomainKeys signature generation. Tested and verified DKIM / DomainKeys signatures in emails sent to […]

Username in LastErrorText

Question: I discovered that the program is trying to use the Computer System Username to instead of the username given in the program code to connect to the server. Answer: The Chilkat component is not trying to use the Computer System username. The LastErrorText will (almost) always include the process’s logged-on username in the beginning, along with other pieces of information […]

SFTP GetFileSize32 returns 4294967295

Question: I have an issue with the SFTP component. When using the GetFileSize32 it returns 4294967295 for a file with length of 1324 bytes. L When using the GetFileSizeStr it returns Nothing for a file with length of 1324 bytes. L Answer: GetFileSize32 returns -1 when it fails, so I suspect that if your variable is unsigned, -1 will appear […]

VB.NET HTTP Download with percent-done progress monitoring

Here is an example: Dim WithEvents http As Chilkat.Http Private Sub http_OnPercentDone(ByVal sender As Object, ByVal args As Chilkat.PercentDoneEventArgs) Handles http.OnPercentDone ProgressBar1.Value = args.PercentDone End Sub Private Sub HttpDownloadTest() http = New Chilkat.Http() Dim success As Boolean ‘ Any string unlocks the component for the 1st 30-days. success = http.UnlockComponent(“Anything for 30-day trial”) If (success True) Then MsgBox(http.LastErrorText) Exit Sub […]

Using SYSTEMTIME in Java

Chilkat methods that return date/time information do so using SYSTEMTIME. The reason is that Chilkat’s C++ API uses SYSTEMTIME (a MS Windows struct for holding date/time information) and these are wrapped to produce the Java (JNI) API. Here is an example showing how to access the contents of SYSTEMTIME: CkEmail email = new CkEmail(); SYSTEMTIME dt = new SYSTEMTIME(); email.get_LocalDate(dt); […]

SFTP WS_FTP OpenFile “Folder not found” Error

If you pass a filename with no path to the SFTP OpenFile method, and the SFTP server is WS_FTP, you may get a “Folder not found” error. An SFTP server *should* open or create the file in the home directory of the logged-in account. This doesn’t seem to be the case with the WS_FTP server. The fix is to call […]

ESET NOD32 false-positive: Genetik Trojan

Recently, the ESET NOD32 AntiVirus program began erroneously detecting the Chilkat .NET 2.0/3.5 download as containing a Genetik Trojan virus. This is incorrect (i.e. it is a false positive). After researching the Genetik Trojan, it has become apparent that NOD32’s virus definition for this particular virus is frequently a false-positive. If you experience this problem, report the false-positive by sending […]

Adding reference to .NET component in SSIS

Question: “When using Chilkat .NET from an SSIS script, make sure the ChilkatDotNet2.dll assembly is stored in the GAC (Global Assembly Cache). This is required to allow the .NET runtime to find and load the assembly.” However, when I try to add a reference to ChilkatDotNet2.dll it does not show up on the list of available dll’s. Do you have […]