There is no Windows 2010. Do you mean you're running on Windows 10?
The error does seem to indicate a bad install. But this has been an issue for years. The problem generally stems from too many entries in the GAC for System.Design
. Some people say compiling the code first solves the issue while others says to delete the .vs
hidden folder in the project. These seem circumstantial to me.
Someone from MS said to run gacutil /l System.Design
. You should get 1 entry for .NET 2.0 and one entry for .NET 4.0, both targeting MSIL. If you get any extra entries then they will cause an issue. Remove them from the GAC using gacutil /u <fullassemblyname>
. Ensure you use the full name which includes the version and platform. If that doesn't work then go to the GAC on your machine and remove the file manually. Be sure you are not in the GAC_MSIL folder as these versions you want to keep.