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

Forums / Developing with Sitefinity / Create Rss Feed Problem

Create Rss Feed Problem

6 posts, 0 answered
  1. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    25 Oct 2007
    Link to this post

    Sitefinity Team,

    It looks like I can't create Rss feed on version 3.1 because the select content section is grid out or nothing to be selected.

    By the way, I have the screen shot, but I can't attach it from your online forum.

    Please help
    Tim



  2. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    25 Oct 2007
    Link to this post

    Sitefinity Team,

    I think I know what's going on. I changed news module name from News to Breaking News in CMS system. After I changed the news module name back to what it was and select content section shows.

    I am just wondering if there is anyway to fix this problem because end user wants to change the news module name to breaking news. It makes sense to them.

    Please let me know

    Thanks
    Tim

  3. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    25 Oct 2007
    Link to this post
    Following is the Error message:

    Could not find a type for a name.  The type name was 'Telerik.News.Rss.RssChannelProvider, BreakingNews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

    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.ArgumentException: Could not find a type for a name.  The type name was 'Telerik.News.Rss.RssChannelProvider, BreakingNews, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

    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.

    Tim
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    29 Oct 2007
    Link to this post
    Hello Tim,

    Unfortunately, we can't reproduce the described behavior. Please make sure that everything is properly set. Here are the steps to add your own news provider, for example Breaking News provider:

    1. Modify the web.config:

    <cmsEngine defaultProvider="Generic_Content">   
        <providers>  
            ...   
            <add name="Breaking_News" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/BreakingNews" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" commentsModeration="true"/>   
        </providers>  
        ...   
        <metaFields>  
            ...   
            <add key="Breaking_News.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/>   
            <add key="Breaking_News.Summary" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue=""/>   
            <add key="Breaking_News.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/>   
            <add key="Breaking_News.Source" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/>   
            <add key="Breaking_News.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now"/>   
            <add key="Breaking_News.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max"/>   
            <add key="Breaking_News.Thumbnail" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/>      
        </metaFields>  
    </cmsEngine>  
    <news defaultGenericProvider="News">   
        <genericContentProviders>  
            ...   
            <add providerName="Breaking_News" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" thumbnailUrlField="Thumbnail" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" />   
        </genericContentProviders>  
    </news> 

    2. The paths to the default templates are generated automatically based on the provider name. So you need to copy the News folders located in ~/Sitefinity/Admin/ControlTemplates and ~/Sitefinity/ControlTemplates and rename them as the name of your provider (like Breaking_News).

    If your settings are properly set, please give us more detailed information to figure out the problem. It will be very helpful if you could describe the steps for reproducing this.

    Thanks for your cooperation in advance.

    Kind regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    29 Oct 2007
    Link to this post

    Sitefinity Team,

    Sorry I didn't make myself clear. I changed news module name from news to breaking news by overwrite existing news class.

    namespace BreakingNews
    {
        public class BreakingNewsModule : NewsModule 
        {
            public override string Title
            {
                get
                {
                    return "Breaking News";
                }
            }  
        }
    }

    After I made changes, the select content section is grid out or nothing to be selected on creating RSS feed.

    By the way I also got following error message when I tried to use Blog Archive control on the public end:

     Unable to cast object of type 'Telerik.Blogs.Configuration.GenericContentElement' to type 'Telerik.Blogs.IBlogProvider'.

    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.InvalidCastException: Unable to cast object of type 'Telerik.Blogs.Configuration.GenericContentElement' to type 'Telerik.Blogs.IBlogProvider'.

    Please let me know if there is a way to fix those problems.
    Thanks
    Tim



  6. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    31 Oct 2007
    Link to this post
    Hi Tim,

    In order to prevent this error, you should do the following:

    1. Add reference to the System.Web assembly if you haven't done this so far.
    2. Implement the IRssProviderModule interface to the BreakingNewsModule class. It has one method only which should look like this:

    RssProviderInfo[] IRssProviderModule.GetRssProviders()  
    {  
        return new RssProviderInfo[] { new RssProviderInfo("Breaking News Provider",  
            "Telerik.News.Rss.RssChannelProvider, Telerik.News",  
        new Dictionary<stringstring>(),  
        "Telerik.News.WebControls.Rss.RssSettingsControl, Telerik.News",  
        "Telerik.News.WebControls.Rss.RssViewControl, Telerik.News")  
        };  

    Let us know how it goes.

    Best wishes,
    Vassil Daskalov
    the Telerik team

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