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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  issue returning xml string from module settings
Previous Previous
 
Next Next
New Post 7/9/2008 12:40 PM
User is offline mike boone
3 posts
10th Ranked


issue returning xml string from module settings 

i have a module that uses a treeview to allow the user to select certain items for display.  i am populating an object from the tree, serializing it to xml and storing that xml as a module setting.  i discovered that this could occasionally create a string longer than 2000 chars so i have  simple algorithm to break it up into 2000 char chunks.  this has worked perfectly through development and testing.  we have been live with this for a week or two but have just begun to install the module on a large number of portals.

We occassionly lose the app.  When it happens I lose all modules (of this particular module) at once.  I am guessing it is when we are under heavy load i am not getting all of the xml string.  when i look as settings, i get all the other modules settings fine but the xml string can not be deserialized back into the object.  we reset the box or sometimes do nothing at all and then it will start working again (all of the modules).

Is it bad practice to use module setttings to store a string that long?  Has anyone seen anything like this where they don't get all of the characters of  mod setting or maybe none of them when the string is very long?

the code looks something like this: 

           Dim oModControl As New Entities.Modules.ModuleController
             Dim iNumberofChunks As Integer = ctype(oModControl.GetModuleSettings(ModuleID)( "XMLChunks"),Integer)

           For icount As Integer = 0 To iNumberofChunks - 1
                sbXML.Append(oModControl .GetModuleSettings(iModuleID)(sSettingName & icount.ToString))
            Next

            Return sbXML.ToString

i am fearing a momory leak but this is so simple that i am not sure where to look.  i am 99% sure that I am not getting the full xml string and not in the deserialization.  when this has occured i have saved a very simple object that i konw will deserialize and is only 200-300 chars long but it still fails.

 

any ideas would be appreciated...  thanks

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  issue returning xml string from module settings
 


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.

 


Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net
WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com
UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk

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