- 1.Verify the templates are located in
- My Documents\Visual Studio 2022\Templates\Project Templates\Visual C#
- My Documents\Visual Studio 2022\Templates\Project Templates\Visual Basic
2. Close all instances of Visual Studio.
devenv /updateconfigurationas Administrator in the Developer Command Prompt.
4. Reopen Visual Studio.
Ensure that you are targeting the correct framework. This error will occur when net48 is the first-listed framework in TargetFrameworks. Temporarily switch net48 with your Docker runtime target (net5 / net6).
Ensure that you are targeting the correct framework. This error will occur when an incorrect framework is loaded into the Docker container. Temporarily switch the first-listed TargetFramework with your Docker runtime target (net5 / net6).
Occasionally when creating a new Wisej 3 project using .NET48 and .NET6+ the designer will not be visible upon project creation. Rebuild the project and then restart Visual Studio.
The most common designer error is "Unable to cast object of type ‘Wisej.Web.Page’ to type ‘Wisej.Core.IWisejControl’ (or another base type).
This issue occurs when trying to loading multiple versions of Wisej into one Visual Studio instance. Visual Studio loads the Wisej designer assembly for the first page that is shown in the designer. If you open a page from a different project using a different version of Wisej, you will get this error.
Simply restart Visual Studio and re-open the new page.