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  |  

Affordable ASP.NET Hosting Service
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

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


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Serialization Error in Custom Module after Dotnetnuke Upgrade
Previous Previous
 
Next Next
New Post 4/22/2008 6:49 AM
Unresolved
User is offline Stuart - Hilbert Solutions, LLC
659 posts
www.getyourowntots.com
7th Ranked


Serialization Error in Custom Module after Dotnetnuke Upgrade 

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 Dotnetnuke System Integrator
From Module Development to Project Management, your one stop Dotnetnuke Shop
 
New Post 4/22/2008 9:25 AM
User is offline Brandon Haynes
705 posts
brandonhaynes.org
7th Ranked


Re: Serialization Error in Custom Module after Dotnetnuke Upgrade 

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 12:19 PM
User is offline Stuart - Hilbert Solutions, LLC
659 posts
www.getyourowntots.com
7th Ranked


Re: Serialization Error in Custom Module after Dotnetnuke Upgrade 

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 Dotnetnuke System Integrator
From Module Development to Project Management, your one stop Dotnetnuke Shop
 
New Post 4/23/2008 1:00 PM
User is offline Brandon Haynes
705 posts
brandonhaynes.org
7th Ranked


Re: Serialization Error in Custom Module after Dotnetnuke Upgrade 

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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Serialization Error in Custom Module after Dotnetnuke Upgrade
 


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.

 


WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
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

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