This project has moved and is read-only. For the latest updates, please go here.

Sample Host App throws BadImageFormatException while loading Jacobi.Vst.Interop assembly

Jun 27, 2010 at 6:03 PM

Using latest code, VS2008 under Windows 7 x64.

All assemblies build properly and all samples build properly.

Host app throws BadImageFormatException as it executes the Application.Run() line.

Could not load file or assembly 'Jacobi.Vst.Interop, Version=, Culture=neutral, PublicKeyToken=9a10423cf02f39f1' or one of its dependencies. An attempt was made to load a program with an incorrect format.


Any ideas?


Jun 28, 2010 at 6:01 AM

I think the Interop (with managed C++) is not 64 bit compatible.
Something I still have to look into...

What build configuration do you use?

Jun 29, 2010 at 7:07 AM

Good news!

I had been using "Debug | Any CPU".  After seeing your note I tried "Release | Any CPU" -- same problem.


Then I tried "Debug | x86" and it appears to work perfectly.

Debug/Release does not appear to matter:  "Release | x86" works too.  "Debug | x64" fails with the same error, as expected.


Note I only had to change the build configuration of the Samples.  All actual VST.NET assemblies were built with their default config (Debug | Any CPU / Debug | Win32 for Interop).