Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Serialization Error in Custom Module after Dotnetnuke UpgradeSerialization Error in Custom Module after Dotnetnuke Upgrade
Previous
 
Next
New Post
4/22/2008 8:49 AM
 

We have been developing a custom module for sometime now.  It has worked very well up until we upgraded our server from DNN 4.8.0 to DNN 4.8.2.  

Once we did that upgrade we started to get the following error message when we access certain portions of our project:

 

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.

 

We made the adjustment to the web.config that was listed and that resolved the issue.   Sort of.   We found that the "inProc" session was fairly unstable and caused us a bunch of weird random session errors, where our session variables would be partially empty.

After a few days we decided to downgrade back to DNN 4.8.0 and change the Session back to "StateServer".  Immediately all errors went away.

I am looking for some insight into what changed between DNN 4.8.0 and DNN 4.8.2 that would cause the error? 

We can obviously change the way we serialize the object to get around the issue, but is that the best way to do it? 

Thank You,
Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
4/22/2008 11:25 AM
 

Hi Stuart,

I don't see anything in the changelog that jumps out as being a potential culprit for this particular error.  What are you attempting to store in session state that might cause this problem?  In particular, are you attempting to persist any DNN objects?  Is it possible to attach a debugger to the application so that you could catch the error and potentially identify the failing object?

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/23/2008 2:19 PM
 

We are definitely trying to persists DNN Objects, such as UserInfo information.    I didn't see anything that jumped out to me either in the Change Log, that is why I have asked because I just haven't been able to track it down.

Thanks,
Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
4/23/2008 3:00 PM
 

Hi Stuart,

In all likelihood you're going to have to add some debugging code to enumerate the exact DNN objects in question.  One of these is likely missing its serialization attribute.  Since it sounds like the error is reliably reproducable, this should be pretty straightforward.

Let me know if you need some assistance in moving forward with this task.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Serialization Error in Custom Module after Dotnetnuke UpgradeSerialization Error in Custom Module after Dotnetnuke Upgrade


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out