How to use Session State Service with ASP.NET applications

Posted on 2008-11-04
Last Modified: 2012-05-05
In the hope of establishing a more reliable "Web Garden" I am trying to migrate my ASP.NET application to use the Session State Service rather than InProc.  I have configured the application with IIS using the local (started) ASP.NET Session State Service.  On first access to the application I then receive the "Unable to Serialize the session state" message and am told that non-serializable objects and MarshalByRef objects are not permitted.

Since the application is built off-shore, could you explain what these disallowed objects might be, any other reason for the failure and how I might proceed.

Question by:davidxhare
    LVL 2

    Accepted Solution

    Adding serializable to the code in the places it "wants" it is all you should have to do.

    Like this example.

    <Serializable()>  Public Class myclassname
    End Class

    Open in new window

    LVL 13

    Assisted Solution

    This error will happen when we try to store objects that are not marked as serializable. In msdn each class description will show if it is marked as serializable or not

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
    Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now