Archived Forum Post

Index of archived forum posts

Question:

Load Assembly Failed: Exception from HRESULT: 0x80131515

Apr 04 '16 at 09:10

I am using this approach for dynamic loading:
http://cknotes.com/dynamically-loading-net-assembly-32-bit-or-64-bit/

It failed on the line var assembly = Assembly.LoadFrom(path);

with FileLoadException : Could not load file or assembly "file:///C:UsersabcDocumentsVisual Studio 2010ProjectsproblembinDebugChilkatDotNet4-32.dll" or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)


Answer

I found the problem with loading assembly.

The problem is that I downloaded zip and extracted it with Windows Explorer.

It marked DLL as network downloaded and don't want to load it with AssemblyLoad
I extracted zip archive with 7-zip archiver and it works fine.