Archived Forum Post

Index of archived forum posts

Question:

Assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Sep 16 '14 at 11:45

I am receiving a strange error when trying to load the ChilkatDotNet45.dll.

The error is listed below:

Exception calling "Load" with "1" argument(s): 
"Could not load file or assembly 'ChilkatDotNet45.dll' or one of its dependencies. 
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)"

I am trying to load this in a PowerShell script on Win7 x64 with .NET 4.5.1

I tested this script on a Win2012 server running .NET4.5 and it loaded and worked fine.

I understand that the .NET classes are in a single assembly and shouldn’t have any dependencies, so I can’t figure out why it will not load. Is there a difference with .NET4.5.1 and .NET4.5 or is there something else I’m missing?


Answer

This happenss if the VC++ 2012 runtimes are not installed on the system. See http://www.chilkatforum.com/questions/6262/could-not-load-file-or-assembly-chilkatdotnetdll-or-one-of-its-dependencies-the-specified-module-could-not-be-found