Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

People also ask

Can't see Windows Form Designer?

We need to enable the designer in Visual Studio. Go to Tools > Options > Environment > Preview Features and select the Use the preview Windows Forms designer for .

How do I show design in Visual Studio?

Show activity on this post. From the Solution Explorer window select your form, right-click, click on View Designer. Voila! The form should display.

What is design time error?

Recipe design-time errors refer to errors which are caught while building a recipe. These errors typically show up when you select recipe test or recipe start, and prevent you from testing or starting the recipe until they are resolved.


You can also try doing this:

  • Close all the UI design pages
  • Clean Solution
  • Build Solution
  • Open the desired UI design pages

This might or might not help but it certainly resolved the same issue in my project.


Here's another possible solution:

Under the project properties under build, my platform target was set to x64. I updated this to "Any CPU", rebuilt my project and the designers opened fine.

This explains it better: Visual studio designer in x64 doesn't work


Your best bet would be to start with a version of OurServiceBase with no functionality and see if you can design MyService. If so, then slowly add back functionality until it breaks.

Since it looks like Visual Studio is having a problem serializing one of the members of OurServiceBase.


Just in case some one like me have to work on a old project base on Visual Studio 2008 and face the same problem.

It's probably because the project path contain some exotic chars like C#

Example, my path look like that :

C:\projects\C#\projectname...

When it's renamed to

C:\projects\CSharp\projectname...

Visual Studio is now able to recognize parent class and then open the form with the inherited form.