Try our conversational search powered by Generative AI!

Session State error with Google Analytics for EPiServer 7

Vote:
 

Hi

We are using the beta version of the GA plugin and receive the following error due to none serializable members

Exception information: 
    Exception type: SerializationException 
    Exception message: Type 'EPiServer.GoogleAnalytics.Tracking.AnalyticsInteraction' in Assembly 'EPiServer.GoogleAnalytics, Version=1.2.1.1, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
   at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
   at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder binder)
   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder binder)
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo)
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer)

    

I beleive that this is thrown because we are using MSSQL to save session state and it requires members to be serializable.

Does anyone know how to overcome this issue?

 

Thanks

#71506
May 21, 2013 11:54
Vote:
 

We are using state server on the load balanced environment. I would like to know how to overcome this issue too.

Anyone yet ?

#81086
Feb 10, 2014 10:03
Vote:
 

I had to change the affinity on the load balancer to 'Single' and removed the session state line from the web.config to make it all work again.

This is not ideal, but hey, it works.

#81090
Feb 10, 2014 10:29
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.