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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN and Session State ServerDNN and Session State Server
Previous
 
Next
New Post
7/15/2008 11:01 AM
 

Hi ALL,

We are having multiple DNN portals running under seperate worker processes. So we have the need to use state server for sessions. We are facing a problem when trying to store a DNN object(s) in session. Apparently, the DNN object in question is not made serializable and hence ASP.Net throws an error saying "Unabe to serialize the session". So the first question is , does DNN support/recommend session state server? The second question is : What is strange is , this works with DNN 4.8.0 . It does allow to store the dnn objects in state server. But when we try it in 4.8.2 it fails. We are clueless as to how that could it be? Any suggestions how to get them working? Our major problem is because of this one problem we are unable to move forward to upgrade to rcent versions of DNN , which we would like to do very much earliest possible.

Please post any suggestions/alternate solutions as this has been a impending problem since long , thanks in advance

Shankar

 

 

 
New Post
7/15/2008 5:24 PM
 

DotNetNuke does not use sessions, so we do not automatically mark core objects as serializable (typically we only mark items we plan on caching [particularly collections of objects]). As you no doubt know, state server and session database stores require any session variables to be serializable so that they can be stored and retrieved. If you are looking to store non-primitives in session then I would recommend that you create your own object(s) , mark them as serialzable, and populate them when you want. Alternatively you could edit the userinfo class and mark it as serializable.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/16/2008 1:57 AM
 

Thanks for the quick reply. I understand whatever you said on serialisation, however what is perplexing to me is why is it that the core dnn objects are serialisable in 4.8.0 version , although they have not been made serialisable explicitly (looking at the source code)? Obviously i am missing something here. Do you have any suggestions for that? Thanks again for the direction.

 
New Post
7/16/2008 9:07 AM
 

I don't know, I'm surprised (and not completely convinced) if we've added and then removed serialisation based on a version - typically it's only added in, never removed as thats part of the contract. What object is it you're trying to serialise, userinfo?

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/16/2008 9:50 AM
 

Yes , Userinfo is one of them. As i mentioned, If you look at the source of this object , it does not appear to be serialised , but it still does not throw any error when it is being serialised. But the moment i upgrade the DNN version to 4.8.2 it starts throwing the error , Unable to serialise.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN and Session State ServerDNN and Session State Server


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