I have a DLL exception I am encountering:
response threw exception: Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.
I have all source code for the following DLL/library combinations. I am trying to figure if I have a strange combination or what I need to check to ensure this runs. I have a native C++ code in a static library which is called by a managed C++ CLR supported DLL. Everything seems to work fine until the following point.
I created a test C# EXE console application to call the managed C++ CLR supported DLL. This works as expected. The difference where the exception is thrown when there is a C# Class library calling this same managed C++ CLR supported DLL. Is this supported at all or is this the reason why the exception gets thrown? If this combination is incorrect, is there any workaround to get a C# Class DLL to call the managed C++ CLR supported DLL.
Everything is created with Windows 7 64 bit with Visual Studio 2012. All projects are in Release mode with x64 bit platform selected.