# Telerik Web Design Assembly

The Visual Studio designer classes of the **Telerik® UI for ASP.NET AJAX** are located in the **Telerik.Web.Design** assembly.

> note The **Telerik.Web.Design.dll** assembly is installed in the GAC by the automated installer of the Telerik® UI for ASP.NET AJAX suite. Some of the design-time issues described below may require you to modify the GAC in order to remove duplicate assemblies. The [Using the Global Assembly Cache](https://www.telerik.com/products/aspnet-ajax/documentation/deployment/using-the-global-assembly-cache) help article can help you with that.
>
> As of R1 2018, this assembly is no longer added to the GAC by the installer.

During the installation of **Telerik® UI for ASP.NET AJAX** before R1 2018, the **Telerik.Web.Design** assembly gets added to the [GAC](https://msdn.microsoft.com/en-us/library/yf1d93sz\(VS.80\).aspx). Starting a page with any Telerik control on it in design mode, the Visual Studio IDE searches the designer class of the Telerik control and the **Telerik.Web.Design** assembly respectively. Normally, when the assembly is located in the GAC, the Visual Studio IDE loads it properly and displays the control designers.

There are several cases that errors occur in design time.
![Visual Studio Design Time Error](https://www.telerik.com/products/aspnet-ajax/documentation/assets/fecbe3cb121820cba64deb47e81e7d5a/introduction-vsx_vsdesigntimeerror.gif)

Here is a list of the circumstances when this is likely to happen:

* Manual upgrade - It is often faster to download the new Service Pack or [Latest Internal Build](https://www.telerik.com/blogs/download-latest-internal-builds) as a zip file and replace the Telerik.Web.UI reference manually. Forgetting to add the **Telerik.Web.Design** assembly to the GAC breaks the Visual Studio design time, because the Visual Studio IDE cannot load the appropriate design assembly version. The error message can be fixed by either adding the proper **Telerik.Web.Design** assembly to the GAC, or adding it to the local **BIN** folder - the Visual Studio IDE will resolve the designer classes properly. A Visual Studio IDE restart is recommended to avoid loading duplicate [shadow copied assemblies](https://msdn.microsoft.com/en-us/library/ms404279.aspx) (Visual Studio IDE default behavior).

* Using **Visual Studio 2008** without **Service Pack 1** applied - The pre-SP1 Visual Studio 2008 IDE has a bug with the proper assembly loading. The **Telerik.Web.Design** assembly exists in the GAC and the IDE loads it, but it cannot resolve the dependence between the **Telerik.Web.Design** and **Telerik.Web.UI** assemblies properly. To fix the design time error in this case, you could either [apply the Visual Studio SP1 upgrade](https://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E\&displaylang=en), or copy the **Telerik.Web.UI** assembly to the **\[VisualStudioInstallationFolder]\Common7\IDE\PublicAssemblies** folder. This way the Visual Studio IDE would be able to properly resolve the reference between the two assemblies and load the designers.

> note Using the second approach (copying the **Telerik.Web.UI** assembly to the **\[VisualStudioInstallationFolder]\Common7\IDE\PublicAssemblies** folder) could itself cause the problem described above. If you open a project, using a different version of the **Telerik.Web.UI** assembly than the one in the **PublicAssemblies** folder, the IDE could display an InvalidCast error message. It is suggested that you ensure the version of the **Telerik.Web.UI** assembly used by your project and its version in the **PublicAssemblies** folder are the same before loading the IDE.
> This instance of the error usually happens when upgrading Telerik® UI for ASP.NET AJAX.

To help avoid these problems, the [Project Wizard](https://www.telerik.com/products/aspnet-ajax/documentation/integration/visual-studio/visual-studio-extensions/creation-and-configuration-wizard) detects the existence of the **Telerik.Web.Design** assembly in the GAC. If the assembly is not found in the GAC, the wizard will suggest to add it to the **Global Assembly Cache**:

![Project Wizard - Add Design Assembly To GAC](https://www.telerik.com/products/aspnet-ajax/documentation/assets/551b373947d3a426d63608438b37621c/introduction-vsx_projectwizard_adddesignassemblytogac.png)

In case **Telerik.Web.UI.Design.dll** is not found in the selected distribution the wizard will display a warning of possible design time problems:

![Project Wizard - Design Assembly Not Found](https://www.telerik.com/products/aspnet-ajax/documentation/assets/576a6240b1b158ef5d3b96749b183b92/introduction-vsx_projectwizard_nodesignassemblyfound.png)

> note Adding the design assembly to the GAC requires **elevated privileges** . In case you have **User Account Control** enabled on your machine you will have to grant permissions to the **GAC Utility**

![GacUtil - UAC permissions Dialog in Windows 7](https://www.telerik.com/products/aspnet-ajax/documentation/assets/1aaa753ca194003266f7864d4fb35edf/introduction-vsx_gacutilunderuac.png)
