The designer could not be shown for this file because none of the classes within it can be designed

12,384

Solution 1

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??

Solution 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.

Share:
12,384
Luis Valencia
Author by

Luis Valencia

Updated on June 05, 2022

Comments

  • Luis Valencia
    Luis Valencia almost 2 years

    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?>

  • canon
    canon over 12 years
    Client profile loads fewer DLLs in an attempt to be lighter for distribution... it's the default and it always causes headaches.
  • Mahdi Ghiasi
    Mahdi Ghiasi over 12 years
    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
  • Mark Baijens
    Mark Baijens over 5 years
    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.