See the screenshot of the exception produced when I try and drag and drop my newly created and registered ActiveX control
My ActiveX control was originally written using Visual Studio 2003 for Windows XP (32-bit)
I used Visual Studio 2008 and recompiled it for 64-bit Windows. I set the platform to x64.
It compiled OK with no errors I then registered it OK from the command line (had to "Run as Administrator") using regsvr32.
I then added my ActiveX (*.ocx) control to by ToolBox. When I dragged my control onto my Windows form I got the attached error (see the screenshot). The error starts off;
Failed to create component 'AxHost'. The error message follows: 'System .BadImageFormatException: A wrapper assembly is not registered for this type library. at System.Windows.Forms.Desig
Any ideas whats happening here. Anyone had a similar problem that they managed to fix?