Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state ???

Posted on 2006-05-23
2
Medium Priority
?
4,136 Views
Last Modified: 2008-01-16
I have tried to change the IIS Server State Managment Configuration Settings and I am still having problems.
This is VWD 2005 Express Edition. IIS 6.0


Server Error in '/asp.netwebadminfiles' Application.
--------------------------------------------------------------------------------

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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 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.

0
Comment
Question by:julianchicago2
2 Comments
 
LVL 11

Accepted Solution

by:
TornadoV earned 1500 total points
ID: 16746194
One of the things you should take care of when migrating to Out of Process Session state management, be it either SQL Server or ASP.NET state server, is that everything you put inside your session object must be Serializable. Probably you're putting in something that can't be serialized. If  you found out which piece gives you problems you can work around it to get it stored, for example by using simple types like strings.
0
 

Author Comment

by:julianchicago2
ID: 16746412
Nothing has being stored. I am not passing a string this is the contents of my web.config file?
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
      <connectionStrings>
  <add name="FFIncCMDBConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\App_Data\FFIncCMDB.mdb"
   providerName="System.Data.OleDb" />
 </connectionStrings>
 <system.web>
  <customErrors mode="On" />
  <sessionState mode="InProc" cookieless="UseDeviceProfile" />
  <compilation debug="true"/></system.web>
</configuration>

What should be the session state?? I do not know why I having this type of error???
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 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