+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Importing template data failed: System.OutOfMemoryException

Importing template data failed: System.OutOfMemoryException

7 posts, 0 answered
  1. Alex C.
    Alex C. avatar
    12 posts
    Registered:
    11 Feb 2009
    11 Jul 2010
    Link to this post

    I'm trying to create a separate copy of our site on the same server.  I received a System.OutOfMemoryException during the export process, but restarted IIS and was able to successfully export the site to a template.

    Now I'm trying to create a site using this template.  I've created the Project and am at the point where I need to Import the Template Data.  Each time I try, I receive this error message:
    "Importing template data failed: Exception of type 'System.OutOfMemoryException' was thrown.. Check the error log for more details."

    We're running this on a Windows 2003 server with 3 GB of RAM and SQL 2005 on the same server.  There's about 1.5 GB of RAM available at any given time.  And we're running Sitefinity 3.6.1870.2:1.

    Here are the errors from C:\Program Files\telerik\Sitefinity3.6\WebSites\Website3.6\App_Data\sitefinity.log (I ran an IIS reset between each of these):

    7/11/2010 10:11:41 AM [EXCEPTION]
    ************************************************************************************
    ID: e5ca6445-bd42-4635-a186-ec6d7488971e; Code: 100103; Occurrence: 1; Sequence: 12
    ------------------------------------------------------------------------------------

    Application information:
     Machine name: WEB
     OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
     Product Version: 3.6.1870.2
     Application Path: C:\Program Files\telerik\Sitefinity3.6\WebSites\Website3.6\
     Debug: True

    Process information:
     Process ID: 1916
     Process Name: w3wp

    Request information:
     Request URL: /website3.6/sitefinity/cmsstartup.aspx
     Rewrite URL: http://localhost/website3.6/sitefinity/cmsstartup.aspx
     Url Referrer: http://localhost/website3.6/sitefinity/cmsstartup.aspx
     Is Authenticated: False
     Authentication Type:
     User:
     User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
     User Address: 127.0.0.1

    Variables:
     AspSession: System.Web.SessionState.HttpSessionState
     AspSessionIDManagerInitializeRequestCalled: True

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.OutOfMemoryException

    Message: Exception of type 'System.OutOfMemoryException' was thrown.

    Source: mscorlib

    Stack Trace:
       at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
       at System.Text.StringBuilder.set_Capacity(Int32 value)
       at System.Xml.BufferBuilder.ToString()
       at System.Xml.XmlTextReaderImpl.ParseText()
       at System.Xml.XmlTextReaderImpl.ParseElementContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlTextReader.Read()
       at System.Data.DataTextReader.Read()
       at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)
       at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
       at System.Data.XmlDataLoader.LoadData(XmlReader reader)
       at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)
       at System.Data.DataSet.ReadXml(String fileName, XmlReadMode mode)
       at Telerik.Cms.Tools.SiteExporter.Import(String templateName)
       at Telerik.Cms.Web.StartupWizard.SiteTemplatePane.DoWork()
    ------------------------------------------------------------------------------------

     

    7/11/2010 10:23:25 AM [EXCEPTION]
    ************************************************************************************
    ID: 91525a8e-5097-401b-aaac-10935be20f05; Code: 100103; Occurrence: 1; Sequence: 16
    ------------------------------------------------------------------------------------

    Application information:
     Machine name: WEB
     OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2
     Product Version: 3.6.1870.2
     Application Path: C:\Program Files\telerik\Sitefinity3.6\WebSites\Website3.6\
     Debug: True

    Process information:
     Process ID: 3588
     Process Name: w3wp

    Request information:
     Request URL: /website3.6/sitefinity/cmsstartup.aspx
     Rewrite URL: http://localhost/website3.6/sitefinity/cmsstartup.aspx
     Url Referrer: http://localhost/website3.6/sitefinity/cmsstartup.aspx
     Is Authenticated: False
     Authentication Type:
     User:
     User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
     User Address: 127.0.0.1

    Variables:
     AspSession: System.Web.SessionState.HttpSessionState
     AspSessionIDManagerInitializeRequestCalled: True

    - L0 -------------------------------------------------------------------------------

    Exception Type: System.OutOfMemoryException

    Message: Exception of type 'System.OutOfMemoryException' was thrown.

    Source: mscorlib

    Stack Trace:
       at System.Convert.FromBase64String(String s)
       at System.Data.Common.ObjectStorage.ConvertXmlToObject(String s)
       at System.Data.DataColumn.ConvertXmlToObject(String s)
       at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)
       at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
       at System.Data.XmlDataLoader.LoadData(XmlReader reader)
       at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)
       at System.Data.DataSet.ReadXml(String fileName, XmlReadMode mode)
       at Telerik.Cms.Tools.SiteExporter.Import(String templateName)
       at Telerik.Cms.Web.StartupWizard.SiteTemplatePane.DoWork()
    ------------------------------------------------------------------------------------

     

     The template from our production site is about 665 MB, and extracted it's about 880 MB.

    Thoughts, Suggestions?

    -Alex

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Jul 2010
    Link to this post
    Hello Alex Carlock,

    Site exporter/importer is supposed to work with projects that are about 500 mb. If your project is larger, please use project and database backup.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Alex C.
    Alex C. avatar
    12 posts
    Registered:
    11 Feb 2009
    12 Jul 2010
    Link to this post
    Thanks for Replying.  I'm sure I can find the instructions, but to save me some time, can you please point me to how to do this?  And will this process allow me to create a new site with all the same content as the old site, but under a different project/virtual directory?

    Also, I'll eventually need to do this to move to 3.7 SP2.  Will this process work for that as well?

    Thanks,
    Alex
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jul 2010
    Link to this post
    Hi Alex Carlock,

    1. Create a new virtual directory
    2. Backup your database
    3. Copy the project to another location
    4. Create a new database and restore the backup you have already created
    5. Set the virtual directory to point to the copied project.
    6. Modify the web.config connectionString to point to the new database and run the project

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Alex C.
    Alex C. avatar
    12 posts
    Registered:
    11 Feb 2009
    13 Jul 2010
    Link to this post
    That process seems to have worked.  Thanks a lot for the info.

    Two Questions though.
    *Can this process be used to copy a project from SiteFinity 3.6 to 3.7 SP2?
    *How can I get a project to show up in the SiteFinity Projects Manager, i.e. http://localhost/telerik/Sitefinity3.6/Default.aspx?

    Thanks again.
    -Alex
  6. Alex C.
    Alex C. avatar
    12 posts
    Registered:
    11 Feb 2009
    13 Jul 2010
    Link to this post
    Looks like I answered one of my questions:
    I got the project to show up in the Project manager by editing this file:
    C:\Program Files\telerik\Sitefinity3.6\ProjectManager\App_Data\Projects.xml

    Now I just need to know if this process can be used to move a project form 3.6 to 3.7 Sp2.

    Thanks in advance,
    Alex
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Jul 2010
    Link to this post
    Hello Alex Carlock,

    To move a project from 3.6 to 3.7 Sp2 first you need to upgrade it. Then the other steps from the above post are the same.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
7 posts, 0 answered