This is a migrated thread and some comments may be shown as answers.

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

7 Answers 176 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top Coder
Top achievements
Rank 1
Top Coder asked on 17 Sep 2012, 02:43 PM
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)

7 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 20 Sep 2012, 02:07 PM
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.
0
Top Coder
Top achievements
Rank 1
answered on 20 Sep 2012, 02:18 PM
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()
0
Vasil
Telerik team
answered on 21 Sep 2012, 08:38 AM
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.
0
Top Coder
Top achievements
Rank 1
answered on 23 Sep 2012, 04:33 PM
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.
0
Vasil
Telerik team
answered on 26 Sep 2012, 04:10 PM
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.
0
tini
Top achievements
Rank 1
answered on 30 Oct 2015, 07:18 AM
hi, i experience the same problem, is there any solution for this?
0
Maria Ilieva
Telerik team
answered on 30 Oct 2015, 01:11 PM
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
Tags
General Discussions
Asked by
Top Coder
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Top Coder
Top achievements
Rank 1
tini
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or