More in this section
Forums / Developing with Sitefinity / Unknown server tag 'sfSearch:SearchBox

Unknown server tag 'sfSearch:SearchBox

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
5 posts, 0 answered
  1. Charles
    Charles avatar
    61 posts
    18 Jul 2012
    20 Jul 2012
    Link to this post
    Hi, had a project in 4.4. Upgraded it in 5.1 latest build and now a page won't render because of the following error.
    Parser Error Message: Unknown server tag 'sfSearch:SearchBox'.

    Source Error:

    Line 3:  <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Services.Search.Web.UI.Public" TagPrefix="sfSearch" %>
    Line 4:  
    Line 5: <sfSearch:SearchBox ID="topSearchBox" runat="server" />Line 6:  
    Line 7:  <sitefinity:SitefinityLabel id="resultsStats" runat="server" WrapperTagName="p" CssClass="sfsearchResultStatistics" Text="<%$Resources:SearchResources, SearchResultsStatusMessage %>" />

    Source File: /SfCtrlPresentation/OpenAccessDataProvider,a0e28f5cf16e4d68a7b5354be1cdf0fe.ascx Line: 5
  2. Chris
    Chris  avatar
    1 posts
    19 Aug 2011
    22 Jul 2012
    Link to this post
    Look under the Design -> Widget Templates.

    You may have a old customized search results template that is causing this. The new 5.1 version uses a separate Assembly file Telerik.Sitefinity.Search.Impl for search.

    Backup your current search template. Then look up for the line below and replace with the new one.

    <%@ Register Assembly="Telerik.Sitefinity.Search.Impl" Namespace="Telerik.Sitefinity.Services.Search.Web.UI.Public" TagPrefix="sfSearch" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Services.Search.Web.UI.Public" TagPrefix="sfSearch" %>

  3. Charles
    Charles avatar
    61 posts
    18 Jul 2012
    23 Jul 2012
    Link to this post
    Hey all,

    Seems like the search results control on the page that is display this error, needs to have the search results control removed, then readded. I am not sure if this is a bug, as removing the 'old' control from the preupgrade, and then readdeding the search results in the post upgrade resolved the error. No editing of the control properties or changes were done afaik.

    Hope this helps
  4. Owain
    Owain avatar
    110 posts
    17 Jan 2012
    31 Jul 2012
    Link to this post
    Also getting this error but upgraded from 5.0 to 5.1
    But I can't access the site to add remove, just trying to rebuild my site and get the error.
    Do I have to manually change a config file somewhere to make the update??

    Edit: Searched my project for the string and found all the outdated assembly references. All changes and all working now. Thanks!

  5. Justin
    Justin avatar
    9 posts
    29 Jul 2013
    13 Mar 2015
    Link to this post
    Edit: wrong thread, sorry.
5 posts, 0 answered