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.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


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
4 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.

 


Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com

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