Forums
This topic is locked
Unable to serialize the session state.
15 Jun 2007 19:18:50 Henry Chu posted:
I am getting this error. I ran the server check 'detect.asp' files and the server checked out to be able to run smart image processor. but i get this error when i try upload
Image Processor: Error executing the action Load
Server Error in '/' Application.
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:
[SerializationException: The type DMXzone.ImageProcessor.ImageProcessor in Assembly DMXzone.ImageProcessor, Version=2.0.0.1, Culture=neutral, PublicKeyToken=null is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type, Boolean excludeNonSerializable) +868
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +300
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +103
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +493
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +48
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +683
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +136
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1620
[HttpException (0x80004005): 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'.]
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1708
System.Web.SessionState.SessionDictionary.Serialize(BinaryWriter writer) +147
System.Web.SessionState.StateClientManager.Serialize(SessionStateItem item, Stream stream) +146
System.Web.SessionState.OutOfProcStateClientManager.System.Web.SessionState.IStateClientManager.Set(String id, SessionStateItem item, Boolean inStorage) +121
System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +465
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Edited by - amitofo on 15 Jun 2007 19:24:22
Replies
Replied 26 Jun 2007 17:30:47
26 Jun 2007 17:30:47 Georgi Kralev replied:
Hi Henry,
You could try to set session state to mode="inProc" in the web.config file.
For example:
<sessionState mode="InProc" cookieless="false" timeout="20" />
Regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
You could try to set session state to mode="inProc" in the web.config file.
For example:
<sessionState mode="InProc" cookieless="false" timeout="20" />
Regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com