SFTP Permission Denied on OpenFile

Question: I’m getting error after sftp.OpenFile() call OpenFile: DllDate: Nov 27 2008 UnlockPrefix: Anything for 30-day trial Username: chilkat Component: .NET 2.0 SshVersion: SSH-2.0-5.3.3.56 SSH Tectia Server SftpVersion: 3 hcCurDate: Fri, 28 Nov 2008 09:53:46 +0200 hcExpire: 1/2009 filename: sftp_test.txt access: writeOnly createDisposition: openOrCreate v3Flags: 0xa Sent FXP_OPEN [SSH] Received IGNORE message StatusCode: 3 ErrorMessage: Permission denied, file: sftp_test.txt SshLog: […]

VB6 Variant vs Byte Array

In Visual Basic 6.0, a Variant containing a byte array is different than a byte array. For example, examine this code: ‘ Assume mime is a ChilkatMime object… Set mimePart = mime.GetPart(1) thefile = FreeFile() ‘Get the attachment filename FileName = mimePart.FileName ‘Get the attachment Dim mBody As Variant mBody = mimePart.GetBodyBinary If Len(mBody) > 0 Then Open FileName For […]

File Upload Limits in IIS7 – Increasing the Size Limit

A web application running in IIS7 on Windows Server 2008 will reject any upload that is larger than 30MB. This is the default size limit for IIS7. To increase the maximum file size, add the following code to <system.webServer> in the web.config file: (This example sets the limit to 500MB) <security> <requestFiltering> <requestLimits maxAllowedContentLength=”500000000″ /> </requestFiltering> </security> You must restart […]

No socket exists for sending

If the error message “No socket exists for sending” is found in the LastErrorText, it means that the component is not connected to the server. For example, if Ftp2.PutFile is called to upload a file, but Ftp2.Connect is never called to establish the connection, the “No socket exists for sending” would be found in the LastErrorText. Another possibility is that […]

Utf8 C++ property allows for utf-8 or ANSI “const char *”

All Chilkat C++ classes have a Utf8 property. For example: class CkEmail : public CkObject { public: CkEmail(); virtual ~CkEmail(); … bool get_Utf8(void) const; void put_Utf8(bool b); … const char *addFileAttachment(const char *fileName); … }; The Utf8 property controls how the bytes pointed by “const char *” arguments are interpreted. By default, “const char *” strings are interpreted as ANSI […]

x64 ActiveX Registration on Windows 2008 Server

For the most part, a 32-bit Chilkat ActiveX DLL will run on a 64-bit computer. However, there is an issue (to be explained here) that requires the ActiveX to be built specifically for x64. Chilkat provides separate 64-bit ActiveX’s on it’s downloads web page, and these should be used on x64 systems. The problem occurs when a method returns an […]

Exchange Server Unencrypted Login/Password w/ POP3

Question: We are currently using Chilkat to retrieve e-mail for a number of our applications. A client of ours has updated their exchange mail server and they have disabled the pop3 service because of authentication issues (the user/password is sent unencrypted and would be a threat). Are there any other possibilities within the scope of chilkat to retrieve mail from […]

ChilkatDotNet2.dll on x64 from a Windows Service

Here’s the secret to getting the .NET runtime to load the ChilkatDotNet2.dll from a Windows Service: It must be installed in the GAC, but there’s a separate GAC for 64-bit assemblies: (with permission from the Chilkat customer) I was able to find a solution to this. I’m running a 64-bit version of Vista, and there turns out to be a […]