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

Forums / Developing with Sitefinity / Error: The given key was not present in the dictionary

Error: The given key was not present in the dictionary

9 posts, 0 answered
  1. Lisa Martinez
    Lisa Martinez avatar
    5 posts
    Registered:
    03 Apr 2007
    31 Dec 2008
    Link to this post
    Hi Telerik team,

    I am using the Community edition 3.5 SP1. When I was trying to access the RSS feed section under the Administration, I get this error. Earlier it worked fine and I was able to set up RSS for News. I have created a CustomIndex for use in my site. Here the error descriptioni goes. Any help would be greatly appreciated.

    The given key was not present in the dictionary.

    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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    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:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.ThrowHelper.ThrowKeyNotFoundException() +28
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7452124
       Telerik.Rss.WebControls.ControlPanel.clientsRepeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +128
       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() +487
       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) +8678021
       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
    
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    21 Nov 2016
    05 Jan 2009
    Link to this post
    Hello Lisa Martinez,

    We provided you with an answer in your support ticket. If you still have the problem, please write back to us in the support thread.

    Greetings,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Lisa Martinez
    Lisa Martinez avatar
    5 posts
    Registered:
    03 Apr 2007
    06 Jan 2009
    Link to this post
    Thanks Nikolay,
    That worked. Am now able to set up RSS for other modules as well.
    Thanks again.
  4. jcrichto
    jcrichto avatar
    35 posts
    Registered:
    14 Aug 2012
    19 Feb 2009
    Link to this post
    Hi, we are having this same error.   Please share the fix with the rest of us.

    We have 2 sites, p1 and p2.  p1 is the provider for Generic Content, and for user profiles. It is also the provider for news, blogs.  It is not the provider for forums.  We go to administration module, and Crash.. with this error.  We need to setup search index for each site.

    Server Error in '/' Application. 
    The given key was not present in the dictionary. 
    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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. 
     
    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: 
     
    [KeyNotFoundException: The given key was not present in the dictionary.] 
       System.ThrowHelper.ThrowKeyNotFoundException() +28 
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7452124 
       Telerik.Cms.Web.UI.SearchViewControl.CreateChildControls() +140 
       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.AddedControl(Control control, Int32 index) +8678021 
       System.Web.UI.ControlCollection.Add(Control child) +80 
       Telerik.Cms.Web.UI.ServiceList.CreateChildControls() +2054 
       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 
     

  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Feb 2009
    Link to this post
    Hi Jeremy,

    The error message is the same indeed, but the root of the problem is different. The error is that a key/value pair is not found in a dictionary, but we are using dictionaries everywhere in the application.

    Looking at the stack trace, I see it is related to the search indeed. Could you please open a new support ticket, and provide us with your web.config file? We will also appreciate if you could provide us with the exact steps which lead to the problem. Which version are you using?

    Kind regards,
    Georgi
    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.
  6. Mike
    Mike avatar
    7 posts
    Registered:
    13 Nov 2008
    18 Jun 2009
    Link to this post
    I also have the same problem when navigating to /sitefinity/Administration/ . I am using Sitefinity Version 3.6.1936. Please help.

    Regards,

    Mike

    Server Error in '/' Application.

    The given key was not present in the dictionary.

    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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    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:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.ThrowHelper.ThrowKeyNotFoundException() +28
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7454012
       Telerik.Search.WebControls.Admin.ControlPanel.clientsRepeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +127
       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.Search.WebControls.Admin.ControlPanel.Indexes_ItemDataBound(Object sender, RepeaterItemEventArgs e) +767
       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.Search.WebControls.Admin.ControlPanel.LoadMainScreenTemplate() +383
       Telerik.Search.WebControls.Admin.ControlPanel.CreateChildControls() +54
       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() +1133
       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
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jun 2009
    Link to this post
    Hello Mike,

    I suggest that you should backup your data base and then delete all data from the following tables:

    [sf_Search_IndexignService]
    [sf_Search_IndexignClient]
    [sf_Search_ClientSettings]

    Also remove the folders under Sitefinity/App_Data/Search. These folders are named with the name of the indexes you have created.

    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.
  8. Mike
    Mike avatar
    7 posts
    Registered:
    13 Nov 2008
    18 Jun 2009
    Link to this post
    Hi Ivan,

    That solved the problem, thanks for your prompt repsonse.

    Cheers,

    Mike.
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Jun 2009
    Link to this post
    Hi Mike,

    Always glad to help to the community members.

    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
9 posts, 0 answered