I am running into a BadImageFormatException on step 8 of “Getting started with CVB.Net” (Getting Started with CVB.Net). I made sure that “Prefer 32-Bit” is unchecked and that the correct references are added. However, every time the “Display” from the Toolbox is added, Visual Studio throws the following exception:
Failed to create component 'Display. The error message follows:
‘System.BadImageFormatException: Es wurde versucht, eine Datei mit falschem Format zu laden. (Exception from HRESULT: 0x8007000B) at Stemmer.Cvb.Forms.DisplayLib.CreateDisplay(IntPtr&Handle) at Stemmer.Cvb.Forms.Controls.Display…ctor()’
I was wondering, if anyone else is familiar with this or maybe knows, what I am doing wrong.