Now that\'s a real strange error. I am working on a WPF application and following MVVM. In my MainWindow I am setting views and view models and I get this strange error. Alt
Check the Configuration Manager in Visual Studio. Make sure all projects match platform. I wanted platform to be x64, but my primary application was set to AnyCPU. Set that to x64 and it took care of the problem.