Hi,
I have a Web Farm scenario in my application where i am storing the
custom User Object in Session and all the session state
information is stored in Oracle Database .My Session Handler class
inherits from SessionStateStoreProviderBase class.
Structure of User Object is follows
User Contains Object of Generic List of Type Role Object
Role Object contains Generic List of Type Permission Object
Here is complete stack trace of exception
System.Web.HttpException: The session state information is invalid and
might be corrupted. at
System.Web.SessionState.SessionStateItemCollection.Deserialize(BinaryReader
reader) at SessionStateProviderManager.deserialize(HttpContext
p_context, String p_serializedItems, Int32 p_timeout)
Does any one has idea on this error 'Session state information is
invalid and might be corrupted' ?.
that under which scenario do we get this error and what are possible
remedies
For Answers, see/post comments
Session state might be invalid or corrupted Error Options
Subscribe to:
Post Comments (Atom)
4 comments:
HI
i got a similar error, as ViewState corrupted, in a web farm environment.
The reason was due to encryption key used in a web farm.
since different machines, use different encryption keys in such a
environment, server throws such an error.
solution i found for this was, to use a single key for encryption, in
different servers of a farm.
i am afraid i am unable to give more details than this..
regds
prashanth
Can you check if you are not adding session variable names as NULL values
like:
Session.Add(NULL,<variable>)
if you are using dynamic names, this can be your solution.
if the problem is the encryption key, you should have a look at your
machine.config files.
--
Peter
Hi peter i am using constant for session variables
can you please let me know how can i have a look at encryption key
or to be more precise how will i came to know that problem is with
encryption key ...
Regards
Amit Goel
dude,
its not about encryption.
check out this link. this shoud help you..
http://forums.asp.net/p/1069600/1560250.aspx
regds
prashanth
Post a Comment