Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. serializible

serializible

Scheduled Pinned Locked Moved ASP.NET
questioncomlinuxtutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steven Hicks n 1
    wrote on last edited by
    #1

    How can i track down what class is complaining about not being serializible? "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'." -Steven Hicks

    CPA

    CodeProjectAddict

    Actual Linux Penguins were harmed in the creation of this message.

    More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

    B 1 Reply Last reply
    0
    • S Steven Hicks n 1

      How can i track down what class is complaining about not being serializible? "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'." -Steven Hicks

      CPA

      CodeProjectAddict

      Actual Linux Penguins were harmed in the creation of this message.

      More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

      B Offline
      B Offline
      BammBamm
      wrote on last edited by
      #2

      Try looking at the Stack Trace or just look at what objects you are putting into session.

      S 1 Reply Last reply
      0
      • B BammBamm

        Try looking at the Stack Trace or just look at what objects you are putting into session.

        S Offline
        S Offline
        Steven Hicks n 1
        wrote on last edited by
        #3

        Thats the problem.. it doesn't meantion it in the stack trace: [SerializationException: The type System.Xml.XmlBoundElement in Assembly System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=-- is not marked as serializable.] System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type, Boolean excludeNonSerializable) +853 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(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +362 System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +48 System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +601 System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +738 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) +1621 [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) +1711 System.Web.SessionState.SessionDictionary.Serialize(BinaryWriter writer) +148 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

        B 1 Reply Last reply
        0
        • S Steven Hicks n 1

          Thats the problem.. it doesn't meantion it in the stack trace: [SerializationException: The type System.Xml.XmlBoundElement in Assembly System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=-- is not marked as serializable.] System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type, Boolean excludeNonSerializable) +853 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(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +362 System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +48 System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +601 System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +738 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) +1621 [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) +1711 System.Web.SessionState.SessionDictionary.Serialize(BinaryWriter writer) +148 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

          B Offline
          B Offline
          BammBamm
          wrote on last edited by
          #4

          Well, what objects are you storing in session? It can't be that big of a list.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups