28
Upgrade Like a Pro Brian McKeiver, Co-Owner @ BizStream / Kentico MVP

Kentico Connection 2014 Boston Upgrade Like a Pro

  • Upload
    mcbeev

  • View
    448

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Kentico Connection 2014 Boston Upgrade Like a Pro

Upgrade Like a ProBrian McKeiver, Co-Owner @ BizStream / Kentico MVP

Page 2: Kentico Connection 2014 Boston Upgrade Like a Pro

What Are We Doing Here

Upgrade

Tips

#

UpgradeTools

TroubleshootingSteps

# #

Page 3: Kentico Connection 2014 Boston Upgrade Like a Pro

Let’s talk about this over a beer

When you see this…

Page 4: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Prepare your UpgradePlanning Your Upgrade

DowntimeDevelopment effortNew UI

Site administratorsEnd Users

Communication

Convert custom code to native?Version 7 hotfix version?Separate online marketing database?Azure site?

Page 5: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Prep your Kentico Site

• Check-In all your work

• Review Event Log for no existing errors

• Return Virtual Objects to the Database

• Back up you Database and Code

Page 6: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Review your Situation

• Inventory Custom Code

• Place custom C# inside of regions

<%-- #region Name --%>

private void GreatestFunctionEver()

{

//throw NotImplementedException();

}

<%-- #endregion --%>

Page 7: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: One step at a time

5.0 5.5 5.5 R2 6.0 7.0 8.0 8.1

There’s no shortcuts

Page 8: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: RTFM

Page 9: Kentico Connection 2014 Boston Upgrade Like a Pro

Tools: KIM

Upgraded Version from 7• Deploy To allows you to deploy Windows Azure projects• 8.0.2 or higher allows “Web Site” project type deploy

Page 10: Kentico Connection 2014 Boston Upgrade Like a Pro

Tools: Code Upgrade Tool

Where to get it:

http://download.kentico.com/CodeUpgrade8.zip

Get ready for some command line action

Page 11: Kentico Connection 2014 Boston Upgrade Like a Pro

Tools: Code Upgrade Tool II

Issues.csv

Page 12: Kentico Connection 2014 Boston Upgrade Like a Pro

Tools: Code Upgrade Tool III• Common Issues with API

• Class method CMS.xxxxxx was removed. You can use method CMS.xxxxxx instead.• Follow instructions as is, find and replace

• CMSContext.xxxxxx no longer exists• CMSContext was split into multiple context objects to increase performance and reduce

dependencyEcommerceContextDocumentContextPortalContextMembershipContext

• Avoid False PositivesFor customized Kentico files, the tool reports all detected issues, including the default Kentico 7 code. To analyze only the code placed inside the regions, run the tool with an additional parameter: -

customregion=<regionName>

Page 13: Kentico Connection 2014 Boston Upgrade Like a Pro

Tools: Automatic Upgrade

Page 14: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Upgrade Transformations in one shot

Page 15: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Upgrade Transformations in one shot II

Page 16: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Don’t Run Vanilla (8.0.0)

Right after the upgrade is a great time to hotfix

Page 17: Kentico Connection 2014 Boston Upgrade Like a Pro

Tips: Upgrade Custom Class Registrations

• 7.0 custom classes for custom objects are different in 8.0

• Modules

• Scheduled Tasks

• Workflow Actions

• Integration Connectors

• http://www.mcbeev.com/Blog/May-2014/Registering-Custom-Classes-in-Kentico-8-Has-Never-Been-Easier

Page 18: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: Incomplete Upgrade

• After running Upgrade_7_0_8_0 exe, not all dll files in \bin were updated correctly.

• Windows 7 Users don’t forget to un block the upgrade download

• Also make sure you close Visual Studio before running the upgrade package. You don't need to have the site running at the time of upgrade.

Page 19: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: Incomplete Upgrade II

Page 20: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: Handling .new files

Page 21: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: SQL Timeout

• As it turns out the ConnectionTimeout variable is used from your web.config file.

• Up It!

• Manually run the SQL Script in SQL Management Studio to avoid this timeout.

• Do perform a database restore if initial run of the script errors.

Page 22: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: Broken Design Tab

Page 23: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: Built in Control Changes

Kentico 7.0

Kentico 8.0

Page 24: Kentico Connection 2014 Boston Upgrade Like a Pro

Troubleshoot: Event Log Review

Page 25: Kentico Connection 2014 Boston Upgrade Like a Pro

Kentico 8.1 Upgrade• Smaller upgrade- less of a pain

• Happy to report have not seen many issues

Page 27: Kentico Connection 2014 Boston Upgrade Like a Pro

Thank youEmail: [email protected]

Web: http://www.bizstream.com

Blog: http://www.mcbeev.com

Twitter: @mcbeev

LinkedIn: http://www.linkedin.com/in/brianmckeiver

Page 28: Kentico Connection 2014 Boston Upgrade Like a Pro