Unknown Server Tag or Could Not Load File or Assembly Errors Occur
Environment
| Product | Progress® Telerik® UI for ASP.NET AJAX |
Description
When a project using Telerik controls is opened and a page is loaded, a "Unknown Server Tag" or "Could not load file or assembly 'Telerik.Web.UI, version='XXXXX'..." error occurs.
Error Message

Cause
Such errors usually occur when the project does not contain a reference to the Telerik.Web.UI assembly, or the reference is broken.
The possible causes for the errors are the following:
-
There is a GAC-reference for the
Telerik.Web.UIassembly in the project and the GAC has been updated, that is, an oldTelerik.Web.UIassembly is deleted and a new one is added to the GAC. As a result, theTelerik.Web.UIassembly referenced by the website does not exist in the GAC. -
There is a
Binreference for theTelerik.Web.UIassembly in the project, which has been deleted for some reason. As a result, Visual Studio cannot find theTelerik.Web.UIassembly. -
The reference to the
Telerik.Web.UIassembly, either in theRegisterdirective or in theweb.configfile, or in the Telerik HTTP handlers or modules registrations inweb.config, contains a hard-coded version number which does not match the version of the Telerik assembly referenced in your project.
Solution
To solve this issue, use the respective approach:
-
Update the reference to the
Telerik.Web.UIassembly in your project. -
Update the GAC reference:
-
(Manually) Edit the
web.configand/or theASPX/ASCX/Master/UserControlfiles to reflect the assembly version change. You can also skip to specify the exact assembly version to prevent future conflicts. -
(Automatically) Use the Property pages. You will still need to update the
<%@ Register Assembly="Telerik.Web.UI"… %>directives in your pages manually.

Note that to avoid the need to manually modify the
<%@ Register Assembly="Telerik.Web.UI"… %>directives, it is recommended that you register the tag prefix in theweb.configinstead, as shown in the screenshot below.
-
-
Update the
Binreference:-
Browse to the
Telerik.Web.UIassembly through the Property pages. Make sure to choose the assembly from the correct folder (e.g.bin35,bin40,bin45orbin462) depening on the .NET version of your project.
Note that when browsing to the
Telerik.Web.UIassembly in the context of a website project, Visual Studio will always add a GAC reference if it finds the same version of theTelerik.Web.UIassembly. -
Use the Convert To Telerik project menu item available under the Telerik > Telerik® UI for ASP.NET AJAX menu in Visual Studio, which is available when the Visual Studio Extensions feature has been selected during the Telerik UI for ASP.NET AJAX installation.
-