Package ‘Microsoft SQL Management Studio Package’ failed to load

I started getting this error message when opening Microsoft SQL Management Studio 2008 R2, right after installing some application and updates to Visual Studio 2010, by using the Web Platform Installer. It was fairly simple to fix though, because after running a repair of the .NET Framework 4 Client Profile and rebooting the machine, things were back to normal.