Upload
mcbeev
View
448
Download
0
Embed Size (px)
Citation preview
Upgrade Like a ProBrian McKeiver, Co-Owner @ BizStream / Kentico MVP
What Are We Doing Here
Upgrade
Tips
#
UpgradeTools
TroubleshootingSteps
# #
Let’s talk about this over a beer
When you see this…
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?
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
Tips: Review your Situation
• Inventory Custom Code
• Place custom C# inside of regions
<%-- #region Name --%>
private void GreatestFunctionEver()
{
//throw NotImplementedException();
}
<%-- #endregion --%>
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
Tips: RTFM
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
Tools: Code Upgrade Tool
Where to get it:
http://download.kentico.com/CodeUpgrade8.zip
Get ready for some command line action
Tools: Code Upgrade Tool II
Issues.csv
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>
Tools: Automatic Upgrade
Tips: Upgrade Transformations in one shot
Tips: Upgrade Transformations in one shot II
Tips: Don’t Run Vanilla (8.0.0)
Right after the upgrade is a great time to hotfix
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
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.
Troubleshoot: Incomplete Upgrade II
Troubleshoot: Handling .new files
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.
Troubleshoot: Broken Design Tab
Troubleshoot: Built in Control Changes
Kentico 7.0
Kentico 8.0
Troubleshoot: Event Log Review
Kentico 8.1 Upgrade• Smaller upgrade- less of a pain
• Happy to report have not seen many issues
Check out the Kentico Rocks Podcast:
Questions
Thank youEmail: [email protected]
Web: http://www.bizstream.com
Blog: http://www.mcbeev.com
Twitter: @mcbeev
LinkedIn: http://www.linkedin.com/in/brianmckeiver