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

Forums / Bugs & Issues / Required control was not found

Required control was not found

6 posts, 0 answered
  1. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    23 Jun 2009
    Link to this post
    Hi,

    I have just migrated my website from community to standard edition.
    I took all the required controls and pages in that website.
    But when I click on heading of any news or generic content item, it gives me following error.

    Server Error in '/' Application.

    A required control was not found in the template for "~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentPreview.ascx". The control must be assignable form type "System.Web.UI.Control" and must have ID "languagePanel".

    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 "~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentPreview.ascx". The control must be assignable form type "System.Web.UI.Control" and must have ID "languagePanel".

    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 "~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentPreview.ascx". The control must be assignable form type "System.Web.UI.Control" and must have ID "languagePanel".]
       Telerik.Cms.Web.UI.GenericContainer.ThrowException(Type requiredType, String controlId) +58
       Telerik.Cms.Web.UI.GenericContainer.GetControl(String id, Boolean required) +173
       Telerik.Cms.Engine.WebControls.Admin.ContentItemPreview`1.get_LanguagePanel() +39
       Telerik.Cms.Engine.WebControls.Admin.ContentItemPreview`1.SetContentPreview(Guid contentId, IContent cnt) +827
       Telerik.Cms.Engine.WebControls.Admin.ContentItemPreview`1.InitializeControls(Control viewContainer) +143
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +101
       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.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.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 


     


    Please Help...

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Jun 2009
    Link to this post
    Hi shraddha,

    The required control is located in the ContentPreview template. Please open the following template Sitefinity/Admin/ControlTemplates/GenericContent/ContentPreview.ascx

    and make sure that you have the control below

    <asp:PlaceHolder ID="languagePanel" runat="server"
    ... 
      ... 
        ... 
    </asp:PlaceHolder> 

    Most probably you have modified the template and the control above has been removed.

    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.
  3. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    23 Jun 2009
    Link to this post
    Hi Ivan,


    Thanx for the reply..
    I can't see any Placeholder in Sitefinity/Admin/ControlTemplates/GenericContent/ContentPreview.ascx
    When I created website in standard edition, "ContentPreview.ascx" was missing. so I took that file from community edition. I think i need to modify that file somewhere.

    Please reply.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Jun 2009
    Link to this post
    Hi shraddha,

    If you are using Sitefinity 3.6 version you can get the templates for the ExternalTemplates zip available for downloading at MyClient.net account.

    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. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    24 Jun 2009
    Link to this post
    Hi Ivan,

    I have downloaded external templates for standard edition 3.6 and the problem is solved.

    Thanx for the help......
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Jun 2009
    Link to this post
    Hi shraddha,

    I am glad to hear that everything works fine.

    Best wishes,
    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
6 posts, 0 answered