B
Bill L
Hi guys,
Because of restarting application after new DLLs installed into \Bin folder
, we move the session to StateServer, everything'a alright except when I try
to write any simple hash table into session. The Error message shows like
----------------------------------------------------------------------------
-----
Unable to serialize the session state. Please note that non-serializable
objects or MarshalByRef objects are not permitted when session state mode is
'StateServer' or 'SQLServer'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Unable to serialize the session
state. Please note that non-serializable objects or MarshalByRef objects are
not permitted when session state mode is 'StateServer' or 'SQLServer'.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
----------------------------------------------------------------------------
------
After reading some posts here and MSDN articles and makes me even more
confused because Hashtable object is ISerializable , and all things write
into hashtable are just strings, so should I do something else? or have to
manually serialize hashtable object by mysel ?
Thanks
Bill
Because of restarting application after new DLLs installed into \Bin folder
, we move the session to StateServer, everything'a alright except when I try
to write any simple hash table into session. The Error message shows like
----------------------------------------------------------------------------
-----
Unable to serialize the session state. Please note that non-serializable
objects or MarshalByRef objects are not permitted when session state mode is
'StateServer' or 'SQLServer'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Unable to serialize the session
state. Please note that non-serializable objects or MarshalByRef objects are
not permitted when session state mode is 'StateServer' or 'SQLServer'.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
----------------------------------------------------------------------------
------
After reading some posts here and MSDN articles and makes me even more
confused because Hashtable object is ISerializable , and all things write
into hashtable are just strings, so should I do something else? or have to
manually serialize hashtable object by mysel ?
Thanks
Bill