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

Forums / Developing with Sitefinity / Error trying to create RSS feed

Error trying to create RSS feed

8 posts, 0 answered
  1. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    22 Jun 2009
    Link to this post
    Hi, I am getting an error when I click "Create first RSS feed" link in the administration section:

    A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.Repeater" and must have ID "availableSources". 

    Please help asap!

    Thanks.
  2. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    22 Jun 2009
    Link to this post
    Here is the stack trace:

    [TemplateException: A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.Repeater" and must have ID "availableSources".] 
       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.Cms.Web.UI.GenericContainer`1.FindRequiredControl(String id) +67 
       Telerik.Rss.WebControls.LayoutContainer.get_AvailableSources() +26 
       Telerik.Rss.WebControls.ChannelsServices.CreateChildControls() +1050 
       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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 

  3. Dido
    Dido avatar
    149 posts
    Registered:
    24 Sep 2012
    25 Jun 2009
    Link to this post
    Hi,

    Please, make sure that your ~\Sitefinity\Admin\ControlTemplates\RssFeeds\ChannelsProvidersLayout.ascx template contains a repeater with id "feedsInfo". The default template looks like this:
    <h3><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:ChannelsSettings %>"></asp:Literal></h3
    <asp:PlaceHolder id="providersHolder" runat="server"></asp:PlaceHolder> 
    <div class="set"
    <div class="setIn">   
    <h4><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:SelectChannels %>"></asp:Literal></h4
        <asp:Repeater ID="availableSources" runat="Server"
            <HeaderTemplate> 
                <ul class="serviceItemsList"
            </HeaderTemplate> 
            <ItemTemplate> 
                <li> 
                    <asp:LinkButton ID="addItem" runat="server"></asp:LinkButton> 
                </li> 
            </ItemTemplate> 
            <FooterTemplate> 
                </ul> 
            </FooterTemplate> 
        </asp:Repeater> 
    </div> 
    </div> 
    <div class="bottom"><div><!-- --></div></div> 


    Sincerely yours,
    Dido
    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.
  4. Chip Gallent
    Chip Gallent avatar
    41 posts
    Registered:
    06 Nov 2009
    18 Nov 2009
    Link to this post
    I am having this same problem and have changed the line in ~\Sitefinity\Admin\ControlTemplates\RssFeeds\ChannelsProvidersLayout.ascx

    <asp:Repeater ID="availableSources" runat="Server"

    to

    <asp:Repeater ID="feedsInfo" runat="Server"

    That is correct isn't it? I'm still getting the error calling for

    A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.Repeater" and must have ID "availableSources". 

    I have restarted the app pool and reset the web.config file - it's still looking for that repeater ID. We're using v3.7.

    Thanks,
    Chip
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Nov 2009
    Link to this post
    Hello Chip Gallent,

    Can you take the file that I have attached and replace the existing one in your ~/Sitefinity/Admin/ControlTemplates/RssFeeds/ directory with the one attached.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Chip Gallent
    Chip Gallent avatar
    41 posts
    Registered:
    06 Nov 2009
    19 Nov 2009
    Link to this post
    I did that - restarted the App Pool and resaved the web.config and I'm still getting the same error:

    A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.Repeater" and must have ID "availableSources".


    Here's the stack trace:

    [TemplateException: A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.Repeater" and must have ID "availableSources".]
       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.Cms.Web.UI.GenericContainer`1.FindRequiredControl(String id) +67
       Telerik.Rss.WebControls.LayoutContainer.get_AvailableSources() +26
       Telerik.Rss.WebControls.ChannelsServices.CreateChildControls() +1054
       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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    

    Thanks,
    Chip
  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Nov 2009
    Link to this post
    Hello Chip Gallent,

    I would ask you to zip up your webiste and send it to us in a new Support Ticket. I am having trouble reproducing the error with the control template that I sent you.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Chip Gallent
    Chip Gallent avatar
    41 posts
    Registered:
    06 Nov 2009
    19 Nov 2009
    Link to this post
    I just figured out the problem. Yesterday I saw a post that referenced this page in the developer guide:
    http://www.sitefinity.com/help/developer-manual/services-rss-implementing-rss-functionality.html

    I had modified my web.config file for the section "<rss defaultProvider="Sitefinity">" as stated in the guide - which was different. So, I switched it back and everything worked fine.

    Thanks,
    Chip
Register for webinar
8 posts, 0 answered