I'm working in Visual Studio 2010 Ultimate, and I'm having issues with adding certain controls to my Windows Form. I've got two projects, PeakEstimator and PeakEstimatorUI in the same solution. PeakEstimatorUI (my GUI) depends on PeakEstimator (my back end) and everything compiles and runs as expected with the Form and controls I have presently.
I'm running into an issue now however, when I try to add certain controls. TextBoxes, Buttons, Labels, OpenFileDialog controls, and lots of other things work fine, but when I try to add a Chart, LineShape, OvalShape, ReportViewer, ElementHost, etc., I get the following error:
Failed to create component 'component name'. The error message follows: 'System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)'
I've been searching for similar problems, and most threads I've seen talk about x86 vs x64 issues, but I was under the impression that using clr would handle those things for me. Perhaps I've got a fundamental misunderstanding there.
All the controls I'm having trouble with seem to work fine if I create a new Windows Form project, so I assume it must have something to do with the configuration of my project(s). Any ideas?
This is the first time I've developed any sort of serious GUI or used Visual Studio, and it's the first time I've programmed in Windows in a long time, so please, explain it like I'm 5.
Thanks for your time,
Dave
