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

Forums / Bugs & Issues / Services initialization error

Services initialization error

14 posts, 0 answered
  1. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    03 Aug 2009
    Link to this post
    Hi,

    8/3/2009 5:18:04 PM [EXCEPTION]  
    ************************************************************************************  
    ID: 47383170-e1e0-44ac-a35f-1585999c761d; Code: 100103; Occurrence: 2; Sequence: 3  
    ------------------------------------------------------------------------------------  
     
    Application information:  
        Machine name: ILDOT157  
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2  
        Product Version: 3.6.1936.2  
        Application Path: D:\Program Files\telerik\Sitefinity3.6 Community\WebSites\QuantumMF\  
        Debug: False  
     
    Process information:  
        Process ID: 4644  
        Process Name: w3wp  
     
    Request information:  
        Request URL: /equitydirect/JaagoInvestor.aspx  
        Rewrite URL: http://localhost:8777/equitydirect/JaagoInvestor.aspx  
        Url Referrer: http://localhost:8777/equitydirect/09-07-23/How_I_got_my_first_cheque_as_a_fee_-_Amar_Pandit_CFP.aspx  
        Is Authenticated: False  
        Authentication Type:    User:   User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; FunWebProducts; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14.52;  Embedded Web Browser from: http://bsalsa.com/; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)  
        User Address: 127.0.0.1  
     
    Variables:  
     
    - L0 -------------------------------------------------------------------------------  
     
    Exception Type: System.ArgumentException  
     
    Message: Could not find a type for a name.  The type name was 'Telerik.News.Rss.RssChannelProvider, App_Code.9-dpqd93, Version=0.0.0.0, Culture=neutralPublicKeyToken=null'.  
     
    Source: Telerik.Framework  
     
    Stack Trace:   
       at Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)  
       at Telerik.Utilities.TypeResolutionService.ResolveType(String name, Boolean throwOnError)  
       at Telerik.Rss.RssProviderInfo..ctor(String name, String typeFullName, IDictionary`2 settings, String settingsControl, String viewSettingsControl)  
       at Telerik.News.NewsModule.GetRssProviders()  
       at Telerik.Rss.RssProviderService.Initialize()  
       at Telerik.Framework.ServiceHost.Initialize()  
    ------------------------------------------------------------------------------------  
     
     
     
    8/3/2009 5:18:04 PM [UNKNOWN]  
    ************************************************************************************  
    ID: 0bd7fd23-12c9-4e96-a85e-d302c6fdb1c9; Code: 3005; Occurrence: 1; Sequence: 4  
    ------------------------------------------------------------------------------------  
     
    Application information:  
        Machine name: ILDOT157  
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2  
        Product Version: 3.6.1936.2  
        Application Path: D:\Program Files\telerik\Sitefinity3.6 Community\WebSites\QuantumMF\  
        Debug: False  
     
    Process information:  
        Process ID: 4644  
        Process Name: w3wp  
     
    Request information:  
        Request URL: /equitydirect/JaagoInvestor.aspx  
        Rewrite URL: http://localhost:8777/equitydirect/JaagoInvestor.aspx  
        Url Referrer: http://localhost:8777/equitydirect/09-07-23/How_I_got_my_first_cheque_as_a_fee_-_Amar_Pandit_CFP.aspx  
        Is Authenticated: False  
        Authentication Type:    User:   User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; FunWebProducts; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14.52;  Embedded Web Browser from: http://bsalsa.com/; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)  
        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:   
       at Telerik.Framework.ServiceHost.Initialize()  
       at Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context)  
       at System.Web.HttpApplication.InitModulesCommon()  
       at System.Web.HttpApplication.InitModules()  
       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)  
       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)  
       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)  
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  
    ------------------------------------------------------------------------------------ 
    I am getting this error randomly in my website.
    Can you please let me what this error is???

    Thanx...
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Aug 2009
    Link to this post
    Hello shraddha,

    Are you using any custom Rss provider? It seems that the error is happening from a class in the App_Code directory. Please let me know if this is so.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    04 Aug 2009
    Link to this post
    Hi,
    We are not using any RSS provider.
    below given are the APP_Code classes given by you
    1. CustomNewsIndexProvider.cs
    2. CustomNewsModule.cs
    3. CustomNewsIndexProvider.cs
    4. CustomNewsView.cs


    Thanx
  4. Venkat
    Venkat avatar
    105 posts
    Registered:
    20 Nov 2008
    06 Aug 2009
    Link to this post
    I too facing the same problem 'Services initialization error' after adding the following classes

    1. CustomNewsIndexProvider.cs
    2. CustomNewsModule.cs

    but the problem vanishes after refreshng  the page.

    And Rss feed are not working .

    I am getting the following error

    The given key was not present in the dictionary.


    I cleared the data in the tables

    [sf_Search_IndexignService]
    [sf_Search_IndexignClient]
    [sf_Search_ClientSettings]

    and also removed the folders under Sitefinity/App_Data/Search.

    Still problem persists.

    Can any one please help to get out of this problem.

    Thanks
    Venkat.
  5. Venkat
    Venkat avatar
    105 posts
    Registered:
    20 Nov 2008
    06 Aug 2009
    Link to this post

    My probelm get resolved after uncommenting the following line in web.config

     <add type="Telerik.News.NewsModule, Telerik.News"/>

    I commented out this after adding CustomNewsIndexProvider.cs and added the following line in web.config

     <add type="Telerik.News.CustomNewsModule, App_Code"/>

    Thanks
    Venkat

     

     

     

     

     

  6. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    06 Aug 2009
    Link to this post
    Hi,
    I have did this long time back.. when i added that .cs file.
    Still issue is there..


    thanx....
  7. Venkat
    Venkat avatar
    105 posts
    Registered:
    20 Nov 2008
    06 Aug 2009
    Link to this post
    Shradha,

    Could you please tell me the steps you did.

    It will help us to resolve your problem.have you seen my recent reply of adding NewsModule to web.config.

    Thanks
    Venkat
  8. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    06 Aug 2009
    Link to this post
    Hi Venkat,
    Yes I did the same in web.config... And I dont think that was the issue...


    Thnx...
    Shraddha
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    06 Aug 2009
    Link to this post
    Hello shraddha,

    It seems this is some custom functionality. We are not sure though what is it about. Perhaps if you send us the code we can take a look.

    The error goes away after refresh,  because Sitefinity is not loading the faulting services which means that the problem is not fixed, but rather the code is skipped.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  10. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    06 Aug 2009
    Link to this post

    Hi,

    using System;  
    using System.Collections.Generic;  
    using System.Web;  
    using Telerik.News;  
    using Telerik.Framework.Search;  
    using Telerik.News.WebControls.Search;  
     
    namespace Telerik.News  
    {  
        /// <summary> 
        /// Summary description for CustomNewsModule  
        /// </summary> 
        public class CustomNewsModule : NewsModule, IIndexingSupportModule  
        {  
            public CustomNewsModule()  
            {  
                //  
                // TODO: Add constructor logic here  
                //  
            }  
     
            #region IIndexingSupportModule Members  
     
            IServiceClientInfo[] IIndexingSupportModule.GetSeviceClients()  
            {  
                return new IServiceClientInfo[]   
                {  
                    new IndexingServiceClientInfo("NewsIndex"  
                        , typeof(CustomNewsIndexProvider)  
                        , typeof(NewsIndexSettingsControl).FullName  
                        , typeof(NewsIndexViewControl).FullName  
                        , "NewsIndexProvider"  
                        )  
                };  
            }  
     
            #endregion  
        }  

    This is the code for CustomNewsModule.cs which is given by sitefinity team only.
    Please let me if anything is failing.

    -- Thanx
    Shraddha
  11. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Aug 2009
    Link to this post
    Hello shraddha,

    I found the thread in which we provided you with the solution. It seems that it worked at that time, on your side, per your response. Which was the version that you used?
    I replicated the issue locally, and will spend some time for a solution. I will follow up once I what is wrong.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  12. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    11 Aug 2009
    Link to this post
    Hi Georgi,

    I am using 3.6 standard edition and previously I was using 3.6 community.
    My problem was not solved that time but I was enable to find out the error expected by you.
    Thanx..
    --Shraddha
  13. Emil
    Emil avatar
    6 posts
    Registered:
    25 Feb 2009
    12 Aug 2009
    Link to this post

    I have the same problem. Iam using
     1. CustomNewsIndexProvider.cs
    2. CustomNewsModule.cs

    and it is causing the RSS to fail with this error

     

    [ArgumentException: Could not find a type for a name.  The type name was 'Telerik.News.Rss.RssChannelProvider, App_Code.-lyd7yco, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.]
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +897
       Telerik.Utilities.TypeResolutionService.ResolveType(String name, Boolean throwOnError) +29
       Telerik.Rss.RssProviderInfo..ctor(String name, String typeFullName, IDictionary`2 settings, String settingsControl, String viewSettingsControl) +21
       Telerik.News.NewsModule.GetRssProviders() +284
       Telerik.Rss.WebControls.ControlPanel.clientsRepeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +226
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
       System.Web.UI.WebControls.Repeater.DataBind() +75
       Telerik.Rss.WebControls.ControlPanel.FeedsRepeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +453
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
       System.Web.UI.WebControls.Repeater.DataBind() +75
       Telerik.Rss.WebControls.ControlPanel.CreateViewFeedsControls() +488
       Telerik.Rss.WebControls.ControlPanel.CreateChildControls() +161
       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() +1132
       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

  14. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Aug 2009
    Link to this post
    Hi,

    Please use the following code for the CustomNewsModule.cs:
    using System; 
    using System.Collections.Generic; 
    using System.Linq; 
    using System.Web; 
    using Telerik.News; 
    using Telerik.Framework.Search; 
    using Telerik.News.WebControls.Search; 
    using Telerik.Rss; 
     
    namespace Telerik.News 
        /// <summary> 
        /// Summary description for CustomNewsModule 
        /// </summary> 
        public class CustomNewsModule : NewsModule, IIndexingSupportModule, IRssProviderModule 
        { 
            public CustomNewsModule() 
            { 
                // 
                // TODO: Add constructor logic here 
                // 
            } 
            #region IIndexingSupportModule Members 
     
            IServiceClientInfo[] IIndexingSupportModule.GetSeviceClients() 
            { 
                return new IServiceClientInfo[]  
                { 
                    new IndexingServiceClientInfo("NewsIndex" 
                        , typeof(CustomNewsIndexProvider) 
                        , typeof(NewsIndexSettingsControl).FullName 
                        , typeof(NewsIndexViewControl).FullName 
                        , "NewsIndexProvider" 
                        ) 
                }; 
            } 
            #endregion 
            #region IRssProviderModule Members 
     
            RssProviderInfo[] IRssProviderModule.GetRssProviders() 
            { 
                return new RssProviderInfo[] { new RssProviderInfo("News Rss Provider",  
                    typeof(Telerik.News.Rss.RssChannelProvider).FullName, 
                new Dictionary<stringstring>(), 
                typeof(Telerik.News.WebControls.Rss.RssSettingsControl).FullName, 
                typeof(Telerik.News.WebControls.Rss.RssViewControl).FullName) 
                }; 
     
            } 
            #endregion 
        } 

    Note that the RSS functionality should be also overridden, otherwise Sitefinity is trying to initialize the rss provider from the same App_Code assembly.

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Register for webinar
14 posts, 0 answered