(828) 862-6667

Sitefinity Blogs


  • Little known Sitefinity configuration settings
  • More detailed examples for Sitefinity component usage
  • Work-arounds for Sitefinity limitations
  • Discoveries and Ah-Ha moments 

Migration of Sitefinity 3.7 to 4.0

by Rich Winslow | Feb 13, 2011

Migration Key Learnings

We've successfully created two new production websites using Sitefinity 4.0, so now it is time for us to focus on migrating our existing production Sitefinity 3.7 websites to Sitefinity 4.0.

I spent the last 2 days with the Sitefinity Migration Tool, but for our customized Sitefinity implementations there seems to be some roadblocks. I found the documentation was fine, but I had issues running the code.

I was getting exceptions and database inconsistencies that render the website unusable, so I started backing up different stages to allow me to rollback and I stepped through the migration tool code line-by-line and added code to better capture errors.  I found that it was best to do one entity at a time (ex. roles, then users, etc) and make sure each entity worked before going on to the next. 

The screen may show some summary details, but the full details are logged in the Migration in the HTML Log File located here:

~/App_Data/Sitefinity/Logs/Migration.Log.htm

Complete each entity and prove it worked before continuing

I had issues with obsolete references in my templates so they failed. Continuing without addresses this meant that all the pages were created without a template assigned to them.  I tried deleting the pages, fixing the templates, then loading the pages, but that didn't work, so I deleted the templates, loaded the pages, then executed the following database command to set the page templates:

update

 

sf_page_data set template_id = 'some_template_GUID' where theme = 'some_theme' and template_id is null

 

 

 

 

 

go

 

SELECT

 

 

 

[content_id],[date_created],[last_modified],[publication_date],[template_id],[theme],[title_en],[url_name_en],[description_] from sf_page_data where theme = 'some_theme' and template_id is null

 

 

 

Page Revisions

This may be obvious and probably will not be an issue for most, but realize that only the current revision of a page is migrated to Sitefinity 4.0, all older revisions from the Sitefinity 3.7 site are left behind.

Multiple Languages

It appears that multiple cultures are put in by default. I'm not ready to test out multiple cultures yet and it causes an extra dialog box to show every time you save a page, so I went to Administration - Settings - Languages and removed the extra languages for now.

Original Sitefinity 3.7 website error displaying service page

One issue came when I tried to bring up the old website with the Migration Export Service page. My production website has multiple host headers, so I added the following to the bottom of <system.serviceModel>

    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"> 
   
</serviceHostingEnvironment> 

This allows the Migration Export Service web service page to come up.

I will enter blog entries tagged with 'Migration' to record my issues and solutions.

Are you migrating from Sitefinity 3.7 to Sitefinity 4.0?  How is it going?  What successes have you had?  How customized is your Sitefinity 3.7 site?  Please share your successes and your issues by commenting in this blog!

 

5 Comments

  1. 1 nike free run 11 May
    sion, sense, understand, <strong><a href=http://www.nikefree-oslo.eu/nike-free-women-nike-free-run-3-c-3_10.html title=Nike Free 3.0>Nike Free 3.0</a></strong> generate, modify, improvise, have <strong><a href=http://www.nikefree-oslo.eu/ title=Shox Nike>Shox Nike</a></strong> got pure intuition, work spontaneously—are the particular comparison positive aspects theyve <strong><a href=http://www.nikefree-oslo.eu/ title=NIKE FREE>NIKE FREE</a></strong> got above equipment. Theyre also <strong><a href=http://www.nikefree-oslo.eu/ title=NIKE FREE RUN>NIKE FREE RUN</a></strong> the relevant skills <strong><a href=http://www.nikefree-oslo.eu/ title=NIKE FREE>NIKE FREE</a></strong> in which equipment, irrespective of just how intelligent, experienced the maximum problems replicating. </p><p>Marina <strong><a href=http://www.nikefree-oslo.eu/ title=NIKE SHOX>NIKE SHOX</a></strong> Gorbis with the <strong><a href=http://www.nikefree-oslo.eu/nikeshoxkvinnernikeshoxnz-c-37_38.html title=Nike Shox Sko>Nike Shox Sko</a></strong> Initiate money <strong><a href=http://www.nikefree-oslo.eu/nike-free-women-nike-free-run-3-c-3_10.html title=Nike Free run 2>Nike Free run 2</a></strong> for hard times, an unbiased think-tank <strong><a href=http://www.nikefree-oslo.eu/nikeshoxkvinnernikeshoxnz-c-37_38.html title=Nike shox Norge>Nike shox Norge</a></strong> inside Palo Alto, Los angeles, feels in which, although equipment can change folks inside numerous jobs, “they can boost us all, permitting us all to accomplish items we all by <strong><a href=http://www.nikefree-oslo.eu/nike-free-women-nike-free-run-3-c-3_10.html title=Nike Free dame>Nike Free dame</a></strong> no means wanted carryin... <strong><a href=http://www.nikefree-oslo.eu/ title=NIKE SKO>NIKE SKO</a></strong>
  2. 2 Katrien 09 May
    We have also been experiencing problems with migration, but from 3.7 to 5.0.
    When we work in the new sitefinity without migrating the database, everything
    works perfectly. However, when we migrated the database it always gives error
    messages.

    After the migration, we created a new page and published it without error.
    But when we try to create/ edit or simply display our site, we always get this
    error message.

    I don’t know if the problem is during the migration or after but to fixed
    this, I need to restart my iis. 

    Error message:

    Value cannot be null.

    Parameter name: key

    Description:
    An unhandled exception occurred during the execution of the current web request.
    Please review the stack trace for more information about the error and where it
    originated in the code.



    Exception Details: System.ArgumentNullException: Value cannot be null.

    Parameter name: key



    Source Error:

    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.

    Stack Trace:
     
    [ArgumentNullException:
    Value cannot be null.
    Parameter
    name: key]
      
    Telerik.Sitefinity.Web.SiteMapBase.FindSiteMapNodeFromKey(String key, Boolean
    ifAccessible) +1594
      
    Telerik.Sitefinity.Web.PageSiteNodeCollection.UpdateNode(PageSiteNode&
    node) +228
      
    Telerik.Sitefinity.Web.PageSiteNodeCollection.get_Item(Int32 index) +120
      
    Telerik.Sitefinity.Web.InnerEnumerator.get_Current() +25
      
    Telerik.Sitefinity.Web.SiteMapBase.GetChildNode(PageSiteNode parent, String
    urlName) +161
      
    Telerik.Sitefinity.Web.SiteMapBase.FindSiteMapNode(String rawUrl, Boolean
    ifAccessible, Boolean& isAdditionalUrl, String[]& urlParameters)
    +1016
      
    Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase
    httpContext) +184
      
    System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)
    +355
      
    System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase
    context) +75
      
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +80
      
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&

    completedSynchronously) +270

     

    Do you have any idea what might be the problem?





     

  3. 3 jordan 5 26 Apr
    cs
  4. 4 jordan 3 25 Apr
     <b><a href="http://www.buylvhandbagonline.com/">lv outlet</a></b> can <b><a href="http://www.buylvhandbagonline.com/monogram-canvas-C45.html">louis vuitton monogram canvas men</a></b> prevent  P3  ?Recently,  the reporter <b><a href="http://www.buylvhandbagonline.com/fall-winter-2010-C19.html">louis vuitton 2010 fall collection</a></b>  went to  the <b><a href="http://www.buylvhandbagonline.com/fall-winter-2010-C19.html">louis vuitton fall winter 2009</a></b>  <b><a href="http://www.buylvhandbagonline.com/monogram-canvas-C45.html">louis vuitton damier canvas speedy 30</a></b> training institutions  conducted <b><a href="http://www.buylvhandbagonline.com/fall-winter-2010-C19.html">louis vuitton 2010 winter</a></b> field.
  5. 5 vs2010junkie 25 Feb
    Yes, I have had numerous problems as well with migrating from Sitefinity v. 3.7 to v. 4.0.  I have also tried migrating several Sitefinity v. 3.7 sites to v. 4.0 with absolutely no success whatsoever.  The Migration Tool just seems to be way, way too primitive right now.  It is extremely sad that Telerik released a new version with absolutely no reliable method to migrate from one version to the other.

    If I want to get to v. 4.0 anytime soon, it looks like I will have to start from scratch.  Maybe I will switch to Kentico CMS instead...

Comment

  1.    
     
     
      
       

Why Give Our Secrets Away?

I often get asked why I'm willing to journal all of my Sitefinity discoveries. People think I'm insane to give away for free what I labored over at some point.

Let me answer that in 2 parts:

  • Why journal my discoveries?

    Because I forget and I want to a library of knowledge to refer back to. Oh but it is far worse than that... THREE TIMES now, I've gone to Google and searched for a solution to a problem, only to find MY OWN BLOG entry is #1 in Google and viola! there's the solution!
  • Why give it away for free?

    Because others have been kind enough to do it for us; what goes around, comes around.

    There are all levels of experience, thus someone with less experience may defer to us when needed.

    The lines of 'competition' are very much blurred; in our minds competition is a potential customer or partnership in the right situation.

    We maintain healthy partnerships with one of our competitors; they come to us when they need help and visa versa.

    There is plenty of work out there for everyone if you are putting out quality work and you are straightforward with clients and competition.

Talk to us about how we can help YOU!

 


Don't miss out!

Keep up with our Sitefinity discoveries!
Click on the RSS feed icon below or sign up for our newsletter.


Email Address:
     















Company Info  |   Contact Us  |   Site Map  |   Terms  |   Privacy Policy  |  

Automated Results Computer Consulting LLC, 222 South Caldwell Street, Brevard, NC 28712 (828) 862-6667