c# – WPF Visual Studio designer not loading


I’m using Visual Studio 2022 for a WPF project. The project runs without an issue, but the designer in visual studio is not loading, although it works fine on my colleague’s PC (I’m new here).

They use a custom base class for all their UI controls, which inherits from System.Windows.Controls.UserControl (in PresentationFramework). When I open the designer I get a big empty white square with the following error in the error list:

Could not load file or assembly (…) or one of its dependencies. An attempt was made to load a program with an incorrect format.

When I follow the path the DLL is right there on my drive. All the projects are set to compile to x64, so it’s not a 32-64 bit issue. Everything seems okay. How do I debug this issue?


UPDATES

We’re using DevExpress components (v23.1), which seems to be 32-bit DLLs, but I don’t see any of them in the custom base class.

Leave a Reply

Your email address will not be published. Required fields are marked *