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

  • Home
  • SEARCH
  • 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 8951579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:41:48+00:00 2026-06-15T13:41:48+00:00

I am storing an object in session state (using local session state server), class

  • 0

I am storing an object in session state (using local session state server), class def is:

 [Serializable]
 public class ExtendedOAuth2Parameters : OAuth2Parameters

but the service is still reporting:

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.

[SerializationException: Type 'Google.GData.Client.OAuth2Parameters' in Assembly 'Google.GData.Client, Version=2.1.0.0, Culture=neutral, PublicKeyToken=04a59ca9b0273830' is not marked as serializable.]

How to get around it?

  • 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-15T13:41:49+00:00Added an answer on June 15, 2026 at 1:41 pm

    Based on the error message, it looks like the base class (Google.GData.Client.OAuth2Parameters) is not serializable, so even though you have marked your class with the Serializable attribute, the complete class hierarchy is not.

    You would either need to use a bass class that is itself serializable, or if you have access to the code (probably don’t?), make the Google.GData.Client.OAuth2Parameters class serializable.

    Keep in mind that ‘serializability’ is dependent on the complete type tree for any given class – i.e. all base classes and member classes also need to be serializable for the enclosing class to be truly serializable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using ASP.Net state server to store session data in my application.
Is it possible to get the size(in bytes) of a Session object after storing
I've been storing collections of user settings in the Properties.Settings.Default object and using the
I am trying to pass data between two pages using Session State in ASP.NET.
I want to write a custom serializer for storing the session state into Azure
I've got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running
I'm using a Custom Session State provider to store our session data in our
I am using asp.net MVC2. I have a model defined as public class Department
In doing some bioinformatics work, I've been pondering the ramifications of storing object instances
Is there any reason why storing a NSData object of say ~50MB into NSUserDefaults

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.