Visual Studio 2010 does not detect .NET 4

I had the whole installation with VS2010 and the .Net 4 project. I needed to install and use MSMQ, but something with .Net 4 makes the installation impossible. So .Net 4 had to be removed. Now I'm trying to work on the original project, but VS does not detect .Net 4, even if it was reinstalled. In addition, IIS also does not detect it. I get "This assembly is built using a runtime that is newer than the current loaded runtime and cannot be loaded." error.

The .Net validation utility says that both the client and advanced are installed correctly. I tried uninstalling / reinstalling .Net 4, and I looked at the recommended registry keys for detection, and everything was fixed there.

I saw one person say that they can only resolve this by starting a mahcine. I can not do it. Any ideas on how to fix this?

+3
source share
1 answer

Uninstalling .Net 4 without uninstalling Visual Studio 2010 is probably the source of your problem. Visual Studio 2010 has a fundamental requirement for installing .Net 4 and simply won’t work without it. I am very surprised that you were able to do this at all.

The next step I would like to take is to try to restore the installation of Visual Studio 2010. This is your best choice so that everything works again and again.

  • Go to the "Add or Remove Programs" menu
  • Choose Visual Studio 2010
  • Select Repair
+4
source

All Articles