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

Forums / Developing with Sitefinity / RSS doesn't work after I override NewsModule

RSS doesn't work after I override NewsModule

4 posts, 1 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    14 Jan 2011
    Link to this post
    Exception Type: System.ArgumentException
     
    Message: Could not find a type for a name.  The type name was 'Telerik.News.Rss.RssChannelProvider, QUAY.Sitefinity.News, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
     
    Source: Telerik.Framework
     
    Stack Trace:
       em Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       em Telerik.Utilities.TypeResolutionService.ResolveType(String name, Boolean throwOnError)
       em Telerik.Rss.RssProviderInfo..ctor(String name, String typeFullName, IDictionary`2 settings, String settingsControl, String viewSettingsControl)
       em Telerik.News.NewsModule.GetRssProviders()
       em Telerik.Rss.RssProviderService.Initialize()
       em Telerik.Framework.ServiceHost.Initialize()

    My NewsModule

    using System;
    using System.Collections.Generic;
    using Telerik.News.WebControls.Rss;
    using Telerik.News.Rss;
    using Telerik.Rss;
     
    namespace QUAY.Sitefinity.News
    {
        public class NewsModule: Telerik.News.NewsModule
        {
            public override string Title { get { return "Conteúdo"; } }
        }
    }

    Web.config
    <telerik>
        <framework>
            <modules>
                <add type="QUAY.Sitefinity.News.NewsModule, QUAY.Sitefinity.News"/>
                ...
            </modules>
        </framework>
    </telerik>


    What is wrong?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    14 Jan 2011
    Link to this post
    Hello Bruno,

    Please take a look at this post.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    14 Jan 2011
    Link to this post
    public class NewsModule : Telerik.News.NewsModule, IRssProviderModule, IIndexingSupportModule
    {
        public override string Title { get { return "Conteúdo"; } }
     
     
        #region IRssProviderModule Members
     
        RssProviderInfo[] IRssProviderModule.GetRssProviders()
        {
            return new RssProviderInfo[]
            {
                new RssProviderInfo(NewsModule.ModuleName + " Rss Provider",
                    typeof(Telerik.News.Rss.RssChannelProvider).FullName + ", " + typeof(Telerik.News.Rss.RssChannelProvider).Assembly.FullName,
                    new Dictionary<string, string>(),
                    typeof(RssSettingsControl).FullName + ", " + typeof(Telerik.News.Rss.RssChannelProvider).Assembly.FullName,
                    typeof(RssViewControl).FullName + ", " + typeof(Telerik.News.Rss.RssChannelProvider).Assembly.FullName)
            };
        }
     
        #endregion
     
        #region IIndexingSupportModule Members
     
        IServiceClientInfo[] IIndexingSupportModule.GetSeviceClients()
        {
            return new IServiceClientInfo[]
            {
                new IndexingServiceClientInfo("NewsCustomIndex"
                    , typeof(NewsIndexProvider)
                    , typeof(Telerik.News.WebControls.Search.NewsIndexSettingsControl).FullName
                    , typeof(Telerik.News.WebControls.Search.NewsIndexViewControl).FullName
                    , "NewsCustomIndexProvider"
                    )
            };
        }
     
        #endregion
     
        internal const string ModuleName = "NewsModuleCustom";
    }


    Log:

    14/01/2011 14:00:13 [EXCEPTION]
    ************************************************************************************
    ID: 2e40f2e4-55fc-4114-8f5a-27da78171a55; Code: 100103; Occurrence: 1; Sequence: 2
    ------------------------------------------------------------------------------------
     
    Application information:
        Machine name: BRUNO-MICHELS
        OS Version: Microsoft Windows NT 6.1.7600.0
        Product Version: 3.7.2136.2
        Application Path: D:\Redimob\Portal\4.0\WebSite\
        Debug: True
     
    Process information:
        Process ID: 6580
        Process Name: w3wp
     
    Request information:
        Request URL: /
        Rewrite URL: http://127.0.0.1/
        Url Referrer:   Is Authenticated: False
        Authentication Type:    User:   User Agent:
        User Address: 127.0.0.1
     
    Variables:
     
    - L0 -------------------------------------------------------------------------------
     
    Exception Type: System.ArgumentException
     
    Message: Invalid indexing client name specified.
     
    Source: Telerik.Search
     
    Stack Trace:
       em Telerik.Search.Engine.IndexingService..ctor(IIndexingServiceInfo settings)
       em Telerik.Search.Engine.IndexingManager.Initialize()
       em Telerik.Framework.ServiceHost.Initialize()
    ------------------------------------------------------------------------------------
     
     
     
    14/01/2011 14:00:14 [UNKNOWN]
    ************************************************************************************
    ID: e08b22ca-c586-4bdf-b767-14e5fe63e6bb; Code: 3005; Occurrence: 1; Sequence: 3
    ------------------------------------------------------------------------------------
     
    Application information:
        Machine name: BRUNO-MICHELS
        OS Version: Microsoft Windows NT 6.1.7600.0
        Product Version: 3.7.2136.2
        Application Path: D:\Redimob\Portal\4.0\WebSite\
        Debug: True
     
    Process information:
        Process ID: 6580
        Process Name: w3wp
     
    Request information:
        Request URL: /Sitefinity/Admin/CmsAdmin/Services.aspx?service=RSS%20Feeds
        Url Referrer:   Is Authenticated: False
        Authentication Type:    User:   User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
        User Address: 127.0.0.1
     
    Variables:
     
    - L0 -------------------------------------------------------------------------------
     
    Exception Type: System.Web.HttpException
     
    Message: There were errors during services initialization, check the error log for details.
     
    Source: Telerik.Framework
     
    Stack Trace:
       em Telerik.Framework.ServiceHost.Initialize()
       em Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context)
       em System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
       em System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
       em System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
       em System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context)
       em System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    ------------------------------------------------------------------------------------
  4. Bruno Michels
    Bruno Michels avatar
    125 posts
    Registered:
    16 Apr 2010
    14 Jan 2011
    Link to this post
    It works if I ignore IIndexingSupportModule
Register for webinar
4 posts, 1 answered