So I am getting this error on ASP.NET mvc2 solutions that used to work fine. I had to install Visual Studio 2012 and was running low on disk space, so had to manually uninst
Well it seems like this problem can happen if something happenes with the installation of the .NET Framework 4.0. If you get this error try uninstalling anything you installed recently which might have altered the .NET framework installation.