How to use Session State Service with ASP.NET applications

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.

Thanks
David
davidxhareAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BobTheViolentCommented:
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

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Toms EdisonTechnical ManagerCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.