A set of .NET Framework managed libraries for developing graphical user interfaces.
The errors indicate that Windows Forms Designer cannot load the base types it needs to design your forms.
For the message:
The designer could not be shown for this file because none of the classes within it can be designed.
This occurs when Visual Studio cannot find or load a base class that satisfies designer requirements. Typical causes include:
- The base form/control is in an assembly that cannot be loaded by the designer (for example, compiled only for x64/Itanium).
- The class does not inherit from a designer-supported base type.
- The project has not been built after changes.
Actions:
- Build the entire solution so all referenced assemblies are compiled.
- Ensure each form/control class derives from a designer-supported base class (for example,
System.Windows.Forms.FormorUserControl). - If any base forms are defined in a separate project/assembly, make sure that project is referenced and successfully built.
- If the base form(s) are in an assembly compiled as x64 or Itanium, change that project’s Platform Target/CPU to
AnyCPU, rebuild, and then reopen the designer. Visual Studio is a 32-bit process and cannot execute code from a 64-bit-only module in the designer.
For the message:
The type
System.Configuration.ApplicationScopedSettingAttributecould not be found.
This means the designer cannot resolve that type at design time. This is treated like any other “type could not be found” error and will block the designer.
Actions:
- Build the project and check the Error List for any compile errors related to missing references or namespaces.
- Ensure the project references the correct .NET assemblies and that the code using
ApplicationScopedSettingAttributehas the properusing/Importsand target framework. - Fix any code errors in the form’s code-behind (including
InitializeComponent) that prevent the designer from loading.
Once the underlying type and reference issues are resolved and the solution builds cleanly, reopen the form in Design view; the designer should load instead of the error page.
References: