Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  "Unable to serialize the session state" Error - Ideas/Help Requested please!
Previous Previous
 
Next Next
New Post 3/13/2006 3:24 PM
User is offline timtimtimtimtim timtimtimtimtim
346 posts
8th Ranked




"Unable to serialize the session state" Error - Ideas/Help Requested please! 
 Hello all!

I recently added Web Farm support to my DNN setup, including using ASP.NET's StateServer service, and one of my modules is getting an error from which I'm not sure what to do.  I have googled this up quite a bit as well as worked with another DNN user (thanks Stefan@SuperSka!) and the only thing figured out was to try and set the public class mentioned below to be serializable via  "<Serializable()> Public Class WizardPortalInfo"

So my question for you pro's:  What would I need to do to address this funky error and make it go bye bye yet work in asp.net's stateserver config for webfarms?  Thanks a TON in advance for all who read/reply!

Check out the cut/paste below.

Server Error in '/' Application.

Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'.

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. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SerializationException: The type PortalWizard.WizardPortalInfo in Assembly PortalWizard, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null is not marked as serializable.]
   System.Runtime.Serialization.formatterServices.InternalGetSerializableMembers(RuntimeType type, Boolean excludeNonSerializable) +868
   System.Runtime.Serialization.formatterServices.GetSerializableMembers(Type type, StreamingContext context) +300
   System.Runtime.Serialization.formatters.Binary.WriteObjectInfo.InitMemberInfo() +103
   System.Runtime.Serialization.formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IformatterConverter converter) +493
   System.Runtime.Serialization.formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IformatterConverter converter) +48
   System.Runtime.Serialization.formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +683
   System.Runtime.Serialization.formatters.Binary.Binaryformatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +136
   System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1621

[HttpException (0x80004005): Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'.]
   System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1711
   System.Web.SessionState.SessionDictionary.Serialize(BinaryWriter writer) +148
   System.Web.SessionState.StateClientManager.Serialize(SessionStateItem item, Stream stream) +146
   System.Web.SessionState.OutOfProcStateClientManager.System.Web.SessionState.IStateClientManager.Set(String id, SessionStateItem item, Boolean inStorage) +121
   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +465
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  "Unable to serialize the session state" Error - Ideas/Help Requested please!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca
Icthus Technologies
Building Faith on the Internet
www.icthustech.com
Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP