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 […]

Bitvise WinSSHD request “dumb” PTY problem

I’ve found the following scenario when testing SSH shell with the Bitvise WinSSHD server. If a request for a “dumb” pseudo-terminal is sent via the Chilkat SSH component’s SendReqPty method, the WinSSHD server responds with a success status, however, it really fails. The SSHD log has the following error message: 000000000116 2008-11-19 16:29:41.185Z WinSSHD 5.01 [297] Warning Session thread 1014 […]

Chinese Character String Literals in VC++ 8, 9, 10, …

It is possible to use string literals within your C++ code — as long as you save your C++ source file using the utf-8 character encoding. For example, open a .cpp source file and add this line: CkString str1; str1.appendU(L”京”); When you try to save the .cpp source file, you may get a message such as: “Some Unicode characters in […]

Setting the Initialization Vector for Encryption

Question: We’re trying to sync up our Chilkat component with another encryption component but can’t get the initialization vector to match. Is that compiled into the Chilkat module, or can it be changed via a component property? Answer: Yes, the Chilkat encryption component provides the “IV” property. The type depends on the programming language: ActiveX: Variant containing byte array. .NET […]

WSAECONNABORTED An established connection was aborted by the software in your host machine.

Question: Do you have any suggestions on this error? I have all the service packs installed for server 2003. Do I need to send shorter strings? I don’t seem to have any issues with small messages. ChilkatLog: SendString: DllDate: Sep 12 2008 Username: XYZABC Component: .NET 2.0 NumChars: 502583 Charset: ansi NumBytes: 502583 SocketError: WSAECONNABORTED An established connection was aborted […]