How to fix error “To run this application, you first must install one of the following version of the .Net Framework: v2.0.50727”

.net-2.0.net-3.5

How do I fix the error that started popping up in a lot of applications:

To run this application, you first must install one of the following
version of the .Net Framework: v2.0.50727.

Would you like to download an install version v2.0.50727 of the .NET framework now?

Unfortunately, this is not as simple as just installing the .NET 2.0 runtime, because its already installed. If I run the recommended installers for .NET 2.0 or .NET 3.5 SP1, it exits silently.

Events leading to problem:

  • Installed SQL Server 2008 R2, which installs a toy version of Visual Studio 2008 that only deals with SQL specific projects.
  • Uninstalled Visual Studio 2008.

Best Answer

  • I've often seen situations similar to this related to corruption in the installed .Net installation. Martineau's suggestion of uninstalling and reinstalling the .Net is probably in the right ballpark.

    You can get this error with the .Net still installed if the program throwing the error does not DETECT the installation. Uninstalling/reinstalling will help with that. After you've uninstalled the existing .Net package, you might read through this article about the most recent Cleanup utility from MS. If removal of some other application left corrupted system connections, you might need that cleanup in order to get your system back to rights.