Running Chilkat .NET 4.0 on Azure

See this Microsoft TechNet blog discussion about the solution:

http://social.technet.microsoft.com/Forums/en-US/windowsazuredevelopment/thread/8d7a39cc-0e14-49c0-9102-e705c2eec934#498ddad1-d250-418c-9463-2b8958329af3

In summary:

Connect with RDP to Azure image and install vcredist_x64.exe.

How to configure Azure RDP, you can find here:

Could not load file or assembly ‘ChilkatDotNet4.dll’ or one of its dependencies.

(Thank you Josh for your helpful information!)

“I see that occasionally information from clients (with the client’s permission) end up on the blog and thought that perhaps this one would qualify. If there is mention of the C++ Runtime, I didn’t find it.

At any rate, I was having trouble getting the ChilkatDotNet4.dll to load. After a conversation with Matt, I tried installing the Microsoft Visual C++ 2010 Redistributable Package – this resolved my issue:

x86 Microsoft Visual C++ 2010 Redistributable Package
x64 Microsoft Visual C++ 2010 Redistributable Package

I’ve included the error messages below to illustrate that the .dll appears to be being found when registered to the GAC (and certainly when placed directly in the web site’s bin), but cannot load its dependencies.

When loaded into GAC but not found (or when in bin):

Could not load file or assembly ‘ChilkatDotNet4.dll’ or one of its dependencies. The specified module could not be found.

When not loaded into GAC and not in bin:

Could not load file or assembly ‘ChilkatDotNet4, Version=9.0.8.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd’ or one of its dependencies. The system cannot find the file specified.”