A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
This designer error usually means the project is not building cleanly after the migration, or the form class is no longer in a state that the Windows Forms Designer can load.
Use this sequence:
- Check the full project Error List and fix all compile errors first. The designer can fail to open any form when the project has unresolved build errors.
- Verify the project target framework in Solution Explorer > right-click project > Properties. For migrated Visual Basic Windows Forms projects, confirm it targets the intended framework, such as .NET Framework 4.8, if that is what the project requires.
- Clean stale build output:
- Build > Clean Solution
- Delete the bin and obj folders
- Rebuild the solution
- If the project uses settings-related attributes and the migration introduced errors such as
System.Configuration.ApplicationScopedSettingAttributenot being found, add the missing package/reference and then rebuild. - If the form still does not open, check whether the form class is the first class in the file. The designer requires the first class in the file to be the one it loads.
- Confirm the form inherits from a class that can be visually designed. If the class does not inherit from a designable base class, Visual Studio cannot open it in the designer.
- If the file cannot be designed, open it in Code view instead: in Solution Explorer, right-click the file and choose View Code.
- If the issue started after the Visual Studio upgrade and persists after rebuild, run Repair from Visual Studio Installer > More > Repair.
Relevant causes for the specific call stack shown:
-
CodeDomDesignerLoader.PerformLoadcan fail when the language does not provide a parser for the file type. - It also throws when the class can be designed but is not the first class in the file, or when none of the classes in the file can be designed.
If the migrated project also shows missing type errors, resolve those first before reopening the designer.
- Windows Forms Designer error page
- CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager) Method
- How can i solve this error - Microsoft Q&A When trying to open a VS19 project with VS22, the Designer gives this error
- updated and will not show designers - Microsoft Q&A I updated and now none of my design forms will display. One error message is The designer could not be shown for this file because none of he classes within it can be designed. Another says "The type 'System.Configuration.ApplicationScoped SettingAttribute' could not be found.