I\'m just trying to get familiar with the new Fakes Isolation Framework in Visual Studio 2012 RC but I\'m consequently facing issues with ShimNotSupportedException
The problem is related to testsettings. I´ve done what the link below suggested and it finally worked after trying lots of possible solutions
http://blog.degree.no/2012/09/visual-studio-2012-fakes-shimnotsupportedexception-when-debugging-tests/
I had the same exact problem. Try to remove all testsettings files (both from disk and solution), and make sure your solution does not reference any testsettings files.
Also make sure you're using the visual studio testrunner (and not resharper etc. which is instrumenting the code).
I've written two blogposts about these issues which may be helpful:
Visual Studio 2012 Fakes – ShimNotSupportedException when debugging tests
Unit testing – Visual Studio 2012 Fakes in Team City
I have seen this error a number of times with different causes: