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...

Fix CodePlex Error: Repository UUID ‘XXX’ doesn’t match expected UUID ‘YYY’

Friday, August 6, 2010

About a month ago, CodePlex have upgraded their TFS servers to to TFS 2010. While this transition was supposed to be invisible to users who connect using the SVN interface, it wasn’t. The Problem This is what I got while trying to update a project which resides on CodePlex, using AnkhSVN plug-in. Or in a search-engine friendly way: SharpSvn.SvnException: Repository UUID 'XXX' doesn't match expected UUID 'YYY'    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t*...
4 comments