Fix Error: An attempt was made to load a program with an incorrect format

Thursday, September 16, 2010

While trying to run the sample project ShellObjectWatcherSampleWPF from the latest version of Windows API Code Pack, I came across the following problem, both in Visual Studio 2008 and 2010: Or in a search-engine friendly way: “Cannot create instance of ‘MainWindow’ defined in assembly, ‘ShellObjectWatcherSampleWPF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Exception has been thrown by the target of an invocation.  Error in markup file ‘MainWindow.xaml’ Line 1 Position 9.” Checking the internal exception, revealed the following: "Could not load file or assembly 'Microsoft.WindowsAPICodePack.Shell, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An...

Windows Ribbon for WinForms v2.4 Released – Added 64bit Support

Monday, August 9, 2010

The Windows Ribbon for WinForms is a managed wrapper around Windows Ribbon Framework, a free ribbon control that Microsoft provides in Windows 7 and Vista. More details on this project can be found in the project site: windowsribbon.codeplex.com . I’ve just released yet another update to the project. This release adds support for compiling the project on 64bit machines. If you use a 32bit machine, you are safe with your current version. The main change is how I compile the samples applications. Some of the tools...
no comments