Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:42:59+00:00 2026-06-05T16:42:59+00:00

I am getting this error from time to time with serialization and I don’t

  • 0

I am getting this error from time to time with serialization and I don’t know which file I need to serialize.
The pages are on and off one time they load other time they don’t.
Here is the error I am getting:

System.Web.HttpException (0x80004005): Unable to serialize the session
state. In ‘StateServer’ and ‘SQLServer’ mode, ASP.NET will serialize
the session state objects, and as a result non-serializable objects or
MarshalByRef objects are not permitted. The same restriction applies
if similar serialization is done by the custom session state store in
‘Custom’ mode. —>
System.Runtime.Serialization.SerializationException: Type
‘System.Data.Entity.DynamicProxies.Product_CC06DC79809AC788823D74B88F94CCB7155ADCE697911AF73214FB8B5F2B2EB4’
in Assembly ‘EntityFrameworkDynamicProxies-Nop.BusinessLogic,
Version=1.0.0.0, 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(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter,
ObjectWriter objectWriter, SerializationBinder binder) 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) at
System.Web.Util.AltSerialization.WriteValueToStream(Object value,
BinaryWriter writer) at
System.Web.SessionState.SessionStateItemCollection.WriteValueToStreamWithAssert(Object
value, BinaryWriter writer) at
System.Web.SessionState.SessionStateItemCollection.Serialize(BinaryWriter
writer) at
System.Web.SessionState.SessionStateUtility.Serialize(SessionStateStoreData
item, Stream stream) at
System.Web.SessionState.SessionStateUtility.SerializeStoreData(SessionStateStoreData
item, Int32 initialStreamSize, Byte[]& buf, Int32& length, Boolean
compressionEnabled) at
System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext
context, String id, SessionStateStoreData item, Object lockId, Boolean
newItem) at
System.Web.SessionState.SessionStateModule.OnReleaseState(Object
source, EventArgs eventArgs) at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

So basically what I think is something with the entity model but I want to know how I can serialize that.
Thanks in advance, Laziale

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:43:00+00:00Added an answer on June 5, 2026 at 4:43 pm

    System.Data.Entity.DynamicProxies.Product (Error with this class)

    Should add [DataContract] attribute on class and [DataMember] on fields like that

    using System.Runtime.Serialization;
    [DataContract]
    public class Account
    {
        [DataMember]
        public System.Guid ID { get; set; }
        [DataMember]
        public System.Guid AccountSubTypeID { get; set; }
        [DataMember]
        public Nullable<int> IndustryTypeID { get; set; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this awkward error any time I try and create a dialog from
I am getting this error from eway token payment API, soap:ReceiverServer was unable to
I keep getting this error on emulator: I copied this from a tutorial and
Hi I keep getting this error, I'm trying to get tweets from twitter via
Why I'm getting this error. My variables get the names from request, and also
Can someone please explain why I'm getting this error Type mismatch: cannot convert from
I updated from Grails 2.0 to 2.0.1 and started getting this error. Any ideas
I'm updating a project from VS2008 to VS2010 and I'm getting this error: uafxcwd.lib(afxwinappex.obj)
I'm getting this strange error message when trying to clone or pull from git.
I'm getting this exception from facebook SDK: Fatal error: Uncaught OAuthException: (#506) Duplicate status

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.