+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Sitefinity 3.1 SP1 Bugs & Issues

Sitefinity 3.1 SP1 Bugs & Issues

8 posts, 0 answered
  1. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    24 Nov 2007
    Link to this post
    Hi,

    I'm having trouble with Search 3.1 SP1.  When I go to ~/Sitefinity/Admin/CmsAdmin/Services.aspx I get the following error.

    Server Error in '/' Application.  
    --------------------------------------------------------------------------------  
     
    A required control was not found in the template for "Telerik.Search.WebControls.Admin.ControlPanel+MainScreenContainer". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewEmpty".   
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.   
     
    Exception Details: System.Web.HttpException: A required control was not found in the template for "Telerik.Search.WebControls.Admin.ControlPanel+MainScreenContainer". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewEmpty".  
     
    Source Error:   
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.    
     
    Stack Trace:   
     
     
    [HttpException (0x80004005): A required control was not found in the template for "Telerik.Search.WebControls.Admin.ControlPanel+MainScreenContainer". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewEmpty".]  
       Telerik.Cms.Web.UI.GenericContainer`1.FindControl(Type requiredType, String id, Boolean required) +234  
       Telerik.Search.WebControls.Admin.MainScreenContainer.get_CreateFirstIndex() +43  
       Telerik.Search.WebControls.Admin.ControlPanel.LoadMainScreenTemplate() +111  
       Telerik.Search.WebControls.Admin.ControlPanel.CreateChildControls() +48  
       System.Web.UI.Control.EnsureChildControls() +87  
       System.Web.UI.Control.PreRenderRecursiveInternal() +41  
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +2113321  
       System.Web.UI.ControlCollection.Add(Control child) +146  
       Telerik.Cms.Web.UI.ServiceList.CreateChildControls() +1056  
       System.Web.UI.Control.EnsureChildControls() +87  
       System.Web.UI.Control.PreRenderRecursiveInternal() +41  
       System.Web.UI.Control.PreRenderRecursiveInternal() +161  
       System.Web.UI.Control.PreRenderRecursiveInternal() +161  
       System.Web.UI.Control.PreRenderRecursiveInternal() +161  
       System.Web.UI.Control.PreRenderRecursiveInternal() +161  
       System.Web.UI.Control.PreRenderRecursiveInternal() +161  
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360  
     
       
     
     
    --------------------------------------------------------------------------------  
    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832  

    Thanks for your help

    Ben
  2. joshuarivers
    joshuarivers avatar
    2 posts
    Registered:
    06 Jul 2007
    25 Nov 2007
    Link to this post
    I have this exact same problem with a fresh install.
  3. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    26 Nov 2007
    Link to this post
    Hello Ben,

    To fix the problem, you need to make the following change to the application in the web.config file:

    In the telerik/search configuration section, change the defaultProvider name from "Sitefinity" to "Search". The whole section should look like this:

    <search defaultProvider="Search">  
       <providers>  
        <clear/>  
        <add name="Search" type="Telerik.Search.Data.DefaultProvider, Telerik.Search.Data"  connectionStringName="DefaultConnection"/>  
       </providers>  
       <indexingClients>  
        <add name="PageIndex" type="Telerik.Cms.Web.PageIndexingClient, Telerik.Cms" settingsControl="Telerik.Cms.Web.UI.PageIndexSettings, Telerik.Cms" viewSettingsControl="Telerik.Cms.Web.UI.SearchViewControl, Telerik.Cms" description="Provides indexing services for CMS Pages."/>  
       </indexingClients>  
      </search>  

    Let us know how it goes.

    All the best,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. May
    May avatar
    36 posts
    Registered:
    12 Apr 2007
    26 Nov 2007
    Link to this post
    Hi Pepi,

    Still get the error after making the we.config chnages.

  5. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    26 Nov 2007
    Link to this post
    Hello Amy,

    Could you give us more details in order to assist you - what edition are you using, what version? Did you receive the error after upgrade or after creating a brand new project? Any information that you might consider useful is welcome.

    Also, I would suggest you restarted the application and then checked again.

    Thanks for your cooperation in advance.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. May
    May avatar
    36 posts
    Registered:
    12 Apr 2007
    26 Nov 2007
    Link to this post

    Hi Pepi,

    Can Sitefinity run from precompiled or Dlls only mode? Here is my situation. Everything works fine if the source code is used not DLLS. We use CruiseControl.Net to compile and deploy, every user control and template get precompiled. When I run from DLL mode, all controls under~\userControls work fine, but not ~/Sitefinity/Admin/CmsAdmin/Services.aspx, ~/Sitefinity/Admin/Pages.aspx, ~/Sitefinity/Admin/Modules.aspx, it seems that templates can’t be found. There are following errors:

    A required control was not found in the template for "Telerik.Search.WebControls.Admin.ControlPanel+MainScreenContainer". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewEmpty".   
     
    A required control was not found in the template for "Telerik.Cms.Web.UI.PagePermissionsPanel+LayoutContainer". The control must be assignable form type "Telerik.Cms.Web.UI.PermissionSet" and must have ID "PermissionSet1".   
     
    A required control was not found in the template for "Telerik.Cms.Engine.WebControls.Admin.ControlPanel+ListContainer". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewButton".   
     

    Am I missing something?

    Thank you for your help!

    Amy

  7. joshuarivers
    joshuarivers avatar
    2 posts
    Registered:
    06 Jul 2007
    26 Nov 2007
    Link to this post
    The web.config change fixed things for me. Thanks!!
  8. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    27 Nov 2007
    Link to this post
    Hi Amy,

    The reasons why you get this error might be several. For example, you might have corrupted your web.config file (like Joshua says) and thus break your paths to the default templates. In this situation you should override your web.config file with the one from the EmptyProject folder and correct the connection string if needed.

    Other reason for getting this error might be because the structure of the ~/Sitefinity folder is corrupted. For example, you are missing some of the files or you have moved them somewhere else and so on. If so, you should override the whole Sitefinity folder with the one from EmptyProject. If you have made any changes to any files be sure not to override them.

    In case you have modified some of the files, you might have deleted some required controls from the template. For example, the error you sent shows that some of your templates are missing required control with the specified ID and type. Check if this might be the case as well.

    Sincerely yours,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
8 posts, 0 answered