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 7195957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:41:03+00:00 2026-05-28T20:41:03+00:00

I am using jqGrid control in an ASP.NET application. Export to Excel feature is

  • 0

I am using jqGrid control in an ASP.NET application. Export to Excel feature is giving me troubles. Code is going into a load balanced environment, therefore, I am saving session state to SQL. This requires anything dumped into session to be serialized. Can anyone help me determine how to get around this?

It is blowing up here:

if (JQGrid.AjaxCallBackMode != AjaxCallBackMode.None)
{
//save the last grid state in session – to be used for exporting
Session[“gridFilterPageState”] = JQGrid.GetState();
}

This is the error:
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.

  • 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-05-28T20:41:04+00:00Added an answer on May 28, 2026 at 8:41 pm

    Have you thought about a solution where you put your state in a globaly shared object, identified by an ID, and store your ID in the Session State? Of course you would have to deal with some Locks, but if I cannot serialize something, but need it across requests for just ONE user, i make a shared holder, some dictionary (ID, OBJECT) or something, and save the ID in the session.

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

Sidebar

Related Questions

I have a asp.net webforms page in which I'm using the jqGrid component. The
I have a project in ASP.NET MVC1 using VB.NET controlers and JqGrid. it works
I'm currently using jqGrid and ASP.Net MVC. With my current project, my goal is
i m using jqGrid along with asp.net mvc2... the problem is that i m
I'm using jqGrid in an asp.net page. It is bound to an SqlDataSource object
I need to load a dropdownlist dependent using jqgrid. Here's part of my code
I am using jqgrid treeview with an asp.net-mvc backend and i see the GUI
I have a jqGrid on an ASP.Net MVC view. I want to use to
So I'm using jqGrid with my mvc.net / Ling2Sql prototype site that I'm making
My client side application is using jqgrid that requests the server side, which in

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.