I am getting the following error very frequently when working with my AJAX enabled page:
"The state information is invalid for this page and might be corrupted."
Can anyone explain why this is happening and what I can do to prevent it? It is a major problem in the ajax-enabled website I am trying to build. I can be more specific with when and where the error is occuring if needed.
Thank you.
-Tommy
Are you storing custom types in the ViewState? seehttp://www.eranachum.com/PermaLink,guid,295cdfb4-d9d0-4362-8787-9eb80703d13b.aspx
Not sure if this will help, but here's a related post:http://forums.asp.net/p/976239/1472501.aspx
-Damien
Hi,
is the ViewState large for that page? If yes, you could try to split it with <pages maxPageStateFieldLength="charactercount"> setting in web.config. However, are you doing something special on the Page, like loading controls dynamically etc?
Yes, I am loading some custom user controls dynamically at the page_load. Anything I can do to prevent or correct this problem?
Thanks,
-Tommy
Whether you are getting error in IE or Firefox
For Firefox add
if (Request.Browser.Browser == "Firefox") Response.Cache.SetNoStore();
http://forums.asp.net/p/976239/1472501.aspx
FYI...This problem I was having may have been caused by latency problems in my internet connectioin. For about a week I was having some internet connectivity problems where my cable modem was having packet loss up to 60% at times (this is what the tech support guy said). Since my connectivity problems have gone away I haven't received this error even once.
If your problem is solved mark as answer,
So it will help for others
No comments:
Post a Comment