windowsforms-405547-diagnostics-and-troubleshooting-troubleshoot-design-time.md
Important
If a design-time issue occurs in a .NET 6+ application, refer to the following help topic: Design-Time Support for DevExpress WinForms Controls for .NET - FAQ.
The following table lists possible errors and corresponding sections with detailed information:
|
Error
|
Section
| | --- | --- | |
|
These errors usually occur after an update to a newer DevExpress version. Refer to the following section for details: Incomplete Update.
| |
|
| |
|
|
At design time, the IDE attempts to load control metadata and assemblies. If assemblies are mismatched, duplicated, or missing, the designer cannot resolve type information. An error indicates that the project was not updated completely (for example, the framework tries to load older assemblies that were replaced).
The following steps should help resolve the issue:
Close all currently opened designers.The designer may hold stale references to old DLLs that interfere with the upgrade.Clear Bin and Obj folders.They may contain compiled binaries from the previous version.Remove the licenses.licx file.It may still reference outdated DevExpress assemblies.Run the Project Converter again.Ensure that all projects in your solution and all DLLs that use our components (directly or indirectly) are updated and reference required DevExpress assemblies.Restart Visual Studio.Visual Studio caches loaded assemblies in memory. The cache may contain outdated assemblies.Rebuild your project.This action recreates designer metadata and ensures that all source files are recompiled against updated assemblies.
As a starting step, rebuild and clean your solution, remove Bin and Obj folders and the licenses.licx file, and restart Visual Studio.
Visual Studio is a 32-bit application. To visualize a form, it has to load all referenced assemblies at design time. If the Platform target option is set to x64 , Visual Studio cannot load a compiled 64-bit assembly in its 32-bit environment, and an error occurs.
As a solution, temporarily set the Platform target option to Any CPU to generate an assembly that Visual Studio can load.
The error may occur because the project’s framework version is not compatible with the installed DevExpress version.
To resolve the issue, use a framework version compatible with installed components: Prerequisites.
If the designer could not build a form/control due to an inner exception, it may not capture the actual cause and display a general message (for example, the designer swallows the original exception). Investigate the internal failure that triggers the exception to resolve it effectively:
The Visual Studio Designer can experience performance degradation or freezes due to design-time exceptions, installed Visual Studio extensions, or an open Document Outline window.
To speed up the Visual Studio Designer, do the following:
Deactivate all Visual Studio extensionsEliminate extension-related issues.Close the Document Outline window Reduce layout recalculations and UI updates during design-time rendering.Check for design-time exceptions Obtain the exception’s call stack and investigate the stack trace to identify the culprit. Refer to the following help topic for more information: Application Crashes or Throws an Exception.
The following issues may occur:
Take the following actions to resolve the issue:
Refer to the following help topic for more information: Troubleshoot Toolbox Items in Visual Studio.
The following issues may occur:
This behavior usually takes place if you design the application on a screen with non-default DPI settings (more than 100%).
Refer to the following help topic for additional recommendations: How to Build HDPI-Ready Applications.
The component tray can overlap the form surface.
To resolve the issue, check whether the component tray height ($this.TrayHeight) is serialized in form resources (the .resx file). If it is, decrease the height.
This troubleshooting guide mentions the most common design-time issues. If none of the techniques listed here apply to your application, search the web or use the DevExpress.com Search Engine. If you cannot resolve your issue, submit a ticket to our Support Center. To help us assist you efficiently, please include:
See Also