2

Yes I already searched and the solution on this post didnt work, my scenario is different.

I have a winform application, very simple, it was working, and now the error on the title of this post is shown when I try to open the form.
The only thing I have done is installed VS11 developer preview and vs 2010 SP1.

Any idea how to fix this?>

Community
  • 1
  • 1
Luis Valencia
  • 29,595
  • 84
  • 264
  • 467

2 Answers2

4

I managed to solve it, I checked on properties of the project and the framework selected was .net 4.0 client profile.

I changed it to .net 4.0 and then it worked.

by the way what does it mean client profile, what is it for??

Luis Valencia
  • 29,595
  • 84
  • 264
  • 467
  • 2
    Client profile loads fewer DLLs in an attempt to be lighter for distribution... it's the default and it always causes headaches. – canon Oct 07 '11 at 17:14
  • I had this problem with .net 4.0 framework! and I solved my problem by changing framework to another version and again change it to version 4.0 – Mahdi Ghiasi Dec 09 '11 at 19:03
  • I had this problem after creating a new local repository with the 4.7.1 framework. I changed version back to 4.7 and then 4.7.1 again and it worked again. – Mark Baijens Nov 12 '18 at 09:18
2

Just had this happen to me. I was banging my head on my desk in frustration as to why. Closed and reopened Visual Studio and it was fixed. Weird.

Ricky
  • 1,346
  • 1
  • 10
  • 18