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

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.

julianchicago2Asked:
Who is Participating?
 
TornadoVCommented:
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
 
julianchicago2Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.