Flooded with this error: Since upgrading "The given key was not present in the dictionary."

8 posts, 0 answers
  1. Top Coder
    Top Coder avatar
    18 posts
    Member since:
    May 2005

    Posted 17 Sep 2012 Link to this post

    Below, is an error I get now randomly on different pages that have telerik controls, I never seen these error before, until I upgaded to version 2012.2 912

    Error Message:
    The given key was not present in the dictionary.
    Stack Trace:
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Telerik.Web.UI.RadInputControl.LoadClientState(Dictionary`2 clientState) at Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 20 Sep 2012 Link to this post

    Hello,

    From the CallStack it looks like the serialized data (that keeps client state of Radinput) send  to the server is not correct. But I can not be sure why you are facing this issue without able to replicate it here. Is there something common belong the pages in which you get the error? Did you inherited the controls and/or did you override some client side methods of the controls?

    All the best,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Top Coder
    Top Coder avatar
    18 posts
    Member since:
    May 2005

    Posted 20 Sep 2012 Link to this post

    All I did was upgrade from the previous version to the new version.

    I can't reproduce the errors on my own, but when it's running live and people use the website these errors become very abundant in the error logs, before the upgrade they were non-existant.  I made ZERO code changes, just performed the upgrade because of the fix it has to allow you to put quotes into the radgrid again.

    The only thing in common is these screens use the Rad Tab Strip Control, the Rad Grid Controls, and the Rad Window Control and they all share the same master page. 

    I was hoping the new version fixed the issue below, but it did not.  (I'm always terrified of upgrading for fear it will make things worse). (A lot of people around the web says telerik is the cause of it.)  Which I also can't reproduce on my own, but is also abundant in the error logs.

    Error Message: Invalid length for a Base-64 char array.
    Stack Trace:
    at System.Convert.FromBase64String(String s) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load()
  5. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 21 Sep 2012 Link to this post

    Hi,

    Do you have login page in this sites that browsers can use auto-complete to fill username/passwords?
    If the browser has stored some of the hidden fields and now it send them, and we expect different format, and parsing error will happen.
    If some of your sites is public, can you share a link with us?

    All the best,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Top Coder
    Top Coder avatar
    18 posts
    Member since:
    May 2005

    Posted 23 Sep 2012 Link to this post

    The pages are not under login, that causes the issue.. 

    This particular site is public, these are the two pages that the error shows up the most. 

    http://www.unlocktheinbox.com/blacklist/bl/telerik.com/ 
    and 
    http://www.unlocktheinbox.com/dnslookup/mx/telerik.com/ 

    I can't reproduce it on my own, but I'm wondering it some how a search engine crawl is causing it to happen.
  7. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 26 Sep 2012 Link to this post

    Hi,

    We examined your site, and didn't found any reason for this strange behaviour. I am not sure if the crawlers can submit some invalid data thought the client state input. We will investigate the issue further, to make the InputControl stable on submitting invalid data.

    Greetings,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  8. tini
    tini avatar
    1 posts
    Member since:
    Oct 2015

    Posted 30 Oct 2015 Link to this post

    hi, i experience the same problem, is there any solution for this?
  9. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 30 Oct 2015 Link to this post

    Hi Tini,

    As this thread is rather old I would ask you to open a separate forum thread and share the exact issue you are facing. Also providing the information for your page configuration and the version of the controls you are using will help us better understand your case and provide proper solution.

    Regards,
    Maria Ilieva
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017