This is a migrated thread and some comments may be shown as answers.

Unknown server tag 'telerik:RadTextBox

3 Answers 1461 Views
Input
This is a migrated thread and some comments may be shown as answers.
annapurna
Top achievements
Rank 1
annapurna asked on 23 Sep 2010, 07:59 AM
Hi
I am trying to generate telerik controls dynamically on a page using xml and xslt.
I am getting "unknown server tag telerik:RadTextBox" error while trying to create the control.
Below is my aspx code:
<%@ Page language="c#" Codebehind="XmlTransformerForm.aspx.cs" AutoEventWireup="false" Inherits="PubsWeb.XmlTransform.XmlTransformerForm" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <TITLE>XmlTransformerForm</TITLE>
        <META name="GENERATOR" content="Microsoft Visual Studio 7.0">
        <META name="CODE_LANGUAGE" content="C#">
        <META name="vs_defaultClientScript" content="JavaScript">
        <META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <BODY ms_positioning="GridLayout">
        <FORM id="XmlTransformerForm" method="post" runat="server">
            <ASP:PANEL runat="server" id="PnlForm"></ASP:PANEL>
            <!--<div id="abc" runat="server"> </div>-->
            <ASP:BUTTON runat="server" id="BtnSave" text="Save"></ASP:BUTTON>
        </FORM>
    </BODY>
</HTML>
Xslt Code:
<xsl:element name="telerik:{@type}">
                                        <xsl:attribute name="runat">server</xsl:attribute>
                                        <xsl:for-each select="./PROPERTIES/PROPERTY">
                                            <xsl:attribute name="{@name}"><xsl:value-of select="current()"></xsl:value-of></xsl:attribute>
                                        </xsl:for-each>
                                        <xsl:for-each select="./LISTITEMS/LISTITEM">
                                            <telerik:ListItem value="{@value}"><xsl:value-of select="current()"></xsl:value-of></telerik:ListItem>
                                        </xsl:for-each>
                                    </xsl:element>

Xml Code:
<FIELD type="RadTextBox" label="Requestor:" required="true">
          <PROPERTIES>
            <PROPERTY name="ID">txtRequestor</PROPERTY>
            <PROPERTY name="ReadOnly">True</PROPERTY>
          </PROPERTIES>
        </FIELD>

Thanks and Regards,
Annapurna

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Sep 2010, 02:37 PM
Hello Annapurna,

This error usually happens when the project does not contain a reference to the Telerik.Web.UI assembly, or the reference is broken. Please review the Design-time Troubleshooting help article which gives some more information on the matter.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Allen
Top achievements
Rank 2
Iron
Veteran
answered on 02 Jun 2020, 02:25 PM

I have had to at least temporarily add this directive to the ascx files in order for the designer to not lose its mind.  Without it, the unknown server tag message appears and the visual designer is essentially useless. 

VIsual Studio 2017.  Telerik NOT registered in the GAC.

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

0
Doncho
Telerik team
answered on 04 Jun 2020, 03:48 PM

Hi Allen,

You can try the listed possible solutions for solving the issue in the Unknown server tag/Could not load file or assembly errors section.

Here is a note from the article that might be useful: To avoid the need to manually modify the <%@ Register Assembly="Telerik.Web.UI"… %> directives, we recommend that you register the tag prefix in the web.config

I hope this will help!

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Input
Asked by
annapurna
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Allen
Top achievements
Rank 2
Iron
Veteran
Doncho
Telerik team
Share this question
or