# Troubleshooting

## Missing Templates

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**
   * If the \Wisej.NET 3 directory is missing, run the installer again or download the templates from this [page](https://docs.wisej.com/docs/getting-started-1/troubleshooting#download-templates).

<div align="left"><img src="https://553579532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MF1D11gPs_az3xaKusw%2Fuploads%2FVIazu9J6fgFex9hP41fd%2Fimage.png?alt=media&#x26;token=c78dc8bc-e579-4acf-95f2-a1b24ee8b576" alt=""></div>

2\. **Close** all instances of Visual Studio.

3\. **Run** `devenv /updateconfiguration` **as Administrator** in the **Developer Command Prompt**.

4\. **Reopen** Visual Studio.

{% content-ref url="troubleshooting" %}
[troubleshooting](https://docs.wisej.com/docs/releases/whats-new-in-3.0/troubleshooting)
{% endcontent-ref %}

## Docker

### Your Docker server host is configured for 'Linux', however your project targets 'Windows'...

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**).

{% hint style="warning" %}
Ensure that you restore **net48** to the first listed framework in **TargetFrameworks** to load the designer.
{% endhint %}

### **There were build errors. Would you like to continue and run the latest successful build?**

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**).

{% hint style="warning" %}
Ensure that you restore **net48** to the first listed framework in **TargetFrameworks** to load the designer.
{% endhint %}

## Designer Errors

### Missing Designer

Occasionally when creating a new Wisej.NET 3 project using .NET48 and .NET6+ the designer will not be visible upon project creation. **Rebuild the project and then restart Visual Studio**.

### Designer Error

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.NET into one Visual Studio instance. Visual Studio loads the Wisej.NET 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.**

{% hint style="info" %}
You may also need to clear the [Visual Studio Designer cache](https://docs.wisej.com/docs/getting-started-1/troubleshooting#clear-designer-assembly-cache).
{% endhint %}
