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

Forums / Developing with Sitefinity / A required control was not found in the template for "".

A required control was not found in the template for "".

8 posts, 0 answered
  1. Matthew
    Matthew avatar
    38 posts
    Registered:
    24 Jun 2012
    09 Jul 2009
    Link to this post
    Hello,
    I recently upgraded from 3.5 to 3.6
    All works well except when I am in the admin system, and navigate to the Administration tab it returns the following error:

    Server Error in '/' Application.


    A required control was not found in the template for "". 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: Telerik.Cms.Web.UI.TemplateException: A required control was not found in the template for "". 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:

     

    [TemplateException: A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.IButtonControl" and must have ID "createNewEmpty".]

       Telerik.Cms.Web.UI.GenericContainer.ThrowException(Type requiredType, String controlId) +58

       Telerik.Cms.Web.UI.GenericContainer`1.FindControl(Type requiredType, String id, Boolean required) +76

       Telerik.Search.WebControls.Admin.MainScreenContainer.get_CreateFirstIndex() +38

       Telerik.Search.WebControls.Admin.ControlPanel.LoadMainScreenTemplate() +114

       Telerik.Search.WebControls.Admin.ControlPanel.CreateChildControls() +54

       System.Web.UI.Control.EnsureChildControls() +87

       System.Web.UI.Control.PreRenderRecursiveInternal() +44

       System.Web.UI.Control.AddedControl(Control control, Int32 index) +8681381

       System.Web.UI.ControlCollection.Add(Control child) +80

       Telerik.Cms.Web.UI.ServiceList.CreateChildControls() +1135

       System.Web.UI.Control.EnsureChildControls() +87

       System.Web.UI.Control.PreRenderRecursiveInternal() +44

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    09 Jul 2009
    Link to this post
    Hello Matthew,

    Please check whether you have migrated the template and control listed below:

    \Sitefinity\Admin\ControlTemplates\Search\ControlPanelMain.ascx(66):

    <asp:LinkButton ID="createNewEmpty" runat="server" cssClass="mainLink" ToolTip="<%$Resources:CreateYourFirstIndexTooltip %>"

    The error is thrown because the view cannot find the LinkButton control with ID="createNewEmpty"

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Matthew
    Matthew avatar
    38 posts
    Registered:
    24 Jun 2012
    09 Jul 2009
    Link to this post
    Hi Ivan,

    thanks, you were right. The directory \Sitefinity\Admin\ControlTemplates\Search was empty on the live server (Ftp must of failed during initial upload). After updating it with the 3.6 version from my local the error still resides?

    I can however go to
    sitefinity/admin/CmsAdmin/Services.aspx?service=RSS%20Feeds
    or
    sitefinity/admin/CmsAdmin/Services.aspx?perms=perms

    However, the error remains on
    sitefinity/admin/CmsAdmin/Services.aspx

    Local environment is fine.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 Jul 2009
    Link to this post
    Hello Matthew,

    Can you send the error you are getting now. Services page does not contain  a control with "createNewEmpty". Most probably the error comes from other template that has not been copied. You can check the actual size of the whole project on your production and compare it with the size of the local project that works fine.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Matthew
    Matthew avatar
    38 posts
    Registered:
    24 Jun 2012
    10 Jul 2009
    Link to this post
    Hi Ivan,

    its the same error.

    however, I just had another alert that the site was down. After investigation it is the same issue that I documented here: http://www.sitefinity.com/support/forums/sitefinity-3-x/developing-with-sitefinity/225949-object-reference-not-set-to-an-instance-of-an-object.aspx

    After deleting the 3889etc etc assembly that is in the ServiceAssemblies and bin folder, the site was back up.
    I then checked the Administration tab section and all is working.

    Confused? so am I.

    Any advice appreciated so I can get this site stable and not crash once a day for no reason.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 Jul 2009
    Link to this post
    Hi Matthew,

    A required control was not found in the template for "". seems to be a completely different error than "Object reference not set"
    However the problem at the other post seems to be related to your UNC share. We will try to come up with some suggestions. We will post them in the other Forum thread you opened.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Matthew
    Matthew avatar
    38 posts
    Registered:
    24 Jun 2012
    10 Jul 2009
    Link to this post
    thanks Ivan.

    >A required control was not found in the template for "". seems to be a completely different error than "Object reference not set"

    Please note: I never received an "Object reference no set...etc" on the sitefinity/admin/CmsAdmin/Services.aspx page. I just referenced that other post because after removing the dll (as outlined in the other post) it inadvertently resolved the issue I documented on this thread. e.g. the sequence of events was this:

    1. I first document the error on this thread
    2. You replied and correctly concluded that those controls were missing.
    3. I reviewed the LIVE site and yes the controls were missing so I uploaded it.
    4. At this point it should of resolved the issue but it did not. Same error (caching? or caching due to UNC share?)
    5. The issues I had on the other post were resolved by removing the dll. By chance I checked the sitefinity/admin/CmsAdmin/Services.aspx page after this and found that it worked.

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 Jul 2009
    Link to this post
    Hello Matthew,

    The problems you are facing seems to be related to UNC share.  When using an UNC it is possible that some files are cached. Generally the cache should be cleared after restarting the application and the date will be updated. This seems to be a logically, since you have some periods when the website is up and running and then after a few hours it is down.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
8 posts, 0 answered