Design-Time Issues with Visual Studio 2008 Occur
|Product||Progress® Telerik® UI for ASP.NET AJAX|
You may not be able to upgrade to Visual Studio 2008 SP1 and you may get an exception after upgrading to Telerik UI for ASP.NET AJAX Q1 2009 or later.
Error Creating Control(Telerik control)
Failed to create designer...
As of Q1 2009 (Version 2009.1.311), the new
Telerik.Web.Design.dll assembly gets installed in the GAC. The design-time code is now separated from the web control implementation code with the purpose for a better separation of concerns and less assembly references for the main
Telerik.Web.UI.dll assembly. The design time capabilities of Telerik UI for ASP.NET AJAX could not be extended without bloating the main control assembly.
The reason for this change to take place on a later stage is that Visual Studio 2008 had a problem with loading GAC-ed design-time assemblies of control libraries deployed in the
Bin folder of a website. However, the problem doesn't show in Visual Studio 2005, and this bug was fixed in Visual Studio 2008 SP1. This problem doesn't exist in Visual Studio 2010 RC and Visual Studio 2012.
The following instructions are not applicable if you used the Telerik UI for ASP.NET AJAX installer to set up Telerik controls on your machine and you have Visual Studio 2005, Visual Studio 2008 SP1, Visual Studio 2010, and/or Visual Studio 2012. The design-time works properly out of the box with that setup.
Note that the
Telerik.Web.Design assembly contains the Visual Studio designers of the controls. You don't need to add a reference to it into your project.
To solve this issue and apart from the obvious upgrade to Visual Studio 2008 SP1, use any of the following approaches:
Bin-deploy the design-time assembly:
This solution will work only if you have not installed Telerik UI for ASP.NET AJAX by using the provided setup program. Assemblies installed by a setup program cannot be removed from GAC until the program is uninstalled. Therefore, this approach is suitable when using only the dll-s from a
zip, either a hotfix or the latest internal build.
Telerik.Web.Design.dllfrom the GAC. This will fail if you have installed ASP.NET AJAX controls with the installer.
Binsubfolder of your project. Ensure that the version of the
Telerik.Web.Designassembly is the same as the version of the
Do not add a reference to the
Telerik.Web.Designassembly but perform a simple Windows Explorer-copy.
Restart Visual Studio.
GAC-deploy the control library assembly:
Make sure you have the following line in your
<add assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
Restart Visual Studio.
c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssembliesand restart Visual Studio.
Note that using this approach to copy the
Telerik.Web.UIassembly to the
[VisualStudioInstallationFolder]\Common7\IDE\PublicAssembliesfolder could itself cause the problem described above. If you open a project, using a different version of the
Telerik.Web.UIassembly from the one in the
PublicAssembliesfolder, the IDE could display an
InvalidCasterror message. It is suggested that you ensure the version of the
Telerik.Web.UIassembly used by your project and its version in the
PublicAssembliesfolder are the same before loading the IDE. This instance of the error usually happens when upgrading Telerik UI for ASP.NET AJAX.