You must Sign In to post a response.
  • Category: ASP.NET

    Unknown server tag 'cc1:Editor. error

    Am using asp.net Editor but am get Unknown server tag 'cc1:Editor.how to solve this.

    My Code :

    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <cc1:Editor ID="Editor1" runat="server" Height="350px" />
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    </form>
    </body>
    </html>
  • #767174
    Please make sure to register the toolkit tag prefix in web.config.
    change TagPrefix to

    < %@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
    //and
    < ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
    //then
    < ajaxToolkit:HtmlEditorExtender TargetControlID="txtComments" runat="server" />
    //Check in your web config for AjaxControlToolkit tagPrefix as below
    < configuration>
    < system.web>
    < compilation debug="true" targetFramework="4.0" />
    < pages>
    < controls>
    < add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
    < /controls>
    < /pages>
    < /system.web>
    < /configuration>

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #767178
    HI,
    Add following tag for 'cc1' inside web.config inbetween <system.web> tag so that your code will work fine:

    <pages>
    <controls>
    <add tagPrefix="cc1" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
    < /controls>
    </pages>

  • #767180
    I tried this method but same error i getting. any one support

  • #767184
    Hi,

    There are several reasons behind this issue, first check whether are you able to find the controls using that TagPrefix, if not then that is TagPrefix issue as suggested by above solution you can change the TagPrefix and fix the issue, if you still got the error then check whether in designer are you able to see the AJAX Toolkit registration, if not delete the register and then add it again.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #767185
    Hi,
    Request you to please remove all references of AjaxControlToolKit dll from your solution. After that Clean/Rebuid your solution and add those references again. Then add proper web.config tags again and check.
    Also go through any of the control codes given on this site: http://www.ajaxcontroltoolkit.net/ and make sure you have all the same code placed.


  • Sign In to post your comments