Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Hard problem with session state, ajax and IEHard problem with session state, ajax and IE
Previous
 
Next
New Post
6/18/2009 8:47 AM
 

Hi,

I've got a very strange problem in a custom DNN module causing a "The state information is invalid for this page and might be corrupted." error: I only get this error when I use Internet Explorer! If I use Firefox or even Chrome all works perfectly.

Background: my module uses jQuery UI tabs plugin to build a tabbed interface. I now am dynamically adding new tabs, and populating tabs content via an ajax call to an aspx page (inheting from CDefault) I added to my module. All is working perfectly.

However, after adding such dynamic tabs, if I do a "__dopostback" call to another (static) control (function handling it will then show data and update an updatepanel), with IE 7 (and 8) I get the error. Firefox and even Chrome do the postback and no error is generated!

I tried the following:

  • set enableview_state=false both for my module (containing tabs) and the "ajax" page
  • even set enableview_stateMac=false on the ajax page
  • add view_stateEncryptionMode="Never" to pages in web.config
  • I only use Session variables when needed, never put anything in view_state

but none of these actions solved my problem. It sounds so strange to me that only IE causes the error!

Here's my eventlog: can somebody tell how to solve this?

 AssemblyVersion: 04.09.03
PortalID: 0
PortalName: JBox
UserID: 18
UserName: AVelo
ActiveTabID: 158
ActiveTabName: DBMarchi
RawURL: /Tools/DBMarchi/tabid/158/ctl/SchedaMarchio/mid/632/s/Z001248/cdcli/0A1001/language/it-IT/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://webappxjp/Tools/DBMarchi/tabid/158/ctl/SchedaMarchio/mid/632/s/Z001248/cdcli/0A1001/language/it-IT/Default.aspx#
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 7b4dc3cb-0665-4ec3-a124-3f7025dc640e
InnerException: The state information is invalid for this page and might be corrupted.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Convert.FromBase64String
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The state information is invalid for this page and might be corrupted. ---> System.Web.HttpException: The state information is invalid for this page and might be corrupted. ---> System.Web.UI.view_stateException: Invalid view_state. Client IP: 10.196.2.37 Port: 3323 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) view_state: /wEPDwUJMjgzMDU3ODk3D2QWBmYPFgIeBFRleHQFeTwhRE9DVFlQRSBodG1sIFBVQkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4wIFRyYW5zaXRpb25hbC8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS10cmFuc2l0aW9uYWwuZHRkIj5kAgEPZBYMAgEPFgIeB1Zpc2libGVoZAICDxYEHgdjb250ZW50ZB8BaGQCAw8WAh8CBQ8sRG90TmV0TnVrZSxETk5kAgQPFgIfAgUYSmFjb2JhY2NpICYgUGFydG5lcnMgU3BBZAIFDxYCHwIFC0RvdE5ldE51a2UgZAIGDxYCHwIFBEpCb3hkAgIPZBYCAgEPZBYCAgQPZBYCZg9kFiBmD2QWAmYPDxYGHhRlbGVuY29JRHBlclZpZXdzdGF0ZQXAJjBfMzJfMDswXzMyXzQ7MF8zMl81OzBfMzJfNzswXzMyXzY7MF8zMl8zOzBfMzJfMTswXzMyXzI7MF81NF8wOzBfNTRfNDswXzU0XzU7MF81NF83OzBfNTRfNjswXzU0XzM7MF81NF8xOzBfNTRfMjswXzE1XzA7MF8xNV80OzBfMTVfNTswXzE1Xzc7MF8xNV82OzBfMTVfMzswXzE1XzE7MF8xNV8yOzBfOTJfMDswXzkyXzQ7MF85Ml81OzBfOTJfNzswXzkyXzY7MF85Ml8zOz... ---> System.formatException: Invalid character in a Base-64 string. at System.Convert.FromBase64String(String s) at System.Web.UI.ObjectStateformatter.Deserialize(String inputString) at System.Web.UI.ObjectStateformatter.System.Web.UI.IStateformatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateformatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.view_stateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at Delisoft.DNN.PageBases.MyLocale.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Nome server: WEBAPPXJP
 

 
New Post
6/19/2009 6:08 AM
 

Hello,

if anyone interested, I found out it was the __view_state  causing the errors: I had to put a form in my aspx page, and even if I set Enableview_state="false" Enableview_stateMac="false" aspnet actually adds the view_state to the page!

Just have to remove that.

 

 

 
New Post
11/17/2010 4:30 PM
 
Hello Alberto Velo, can you please tell me what changes you are talking about, where you made changes, where can i find __view__state. i am new to dnn please can you help me.... Thanks and regards Abbas Electricwala...
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Hard problem with session state, ajax and IEHard problem with session state, ajax and IE


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out