Upgrade 8.2 to 9

sayali deshpande asked on May 18, 2016 13:58

Hi,

I want to upgrade my website from version 8.2 to 9 . I am referring the documentation for Upgrading to Kentico 9.

https://docs.kentico.com/display/K9/Upgrading+to+Kentico+9.

I have downloaded Upgrade_8_2_9_0.exe and Kentico code upgrade tool too. As mentioned in docs, I have to run Kentico upgrade tool first so I am trying to run commands which are present on site and also referred PDF which came along with the tool zip. But I am facing issues using those commands on the command prompt.

"CodeUpgrade.exe C:\inetpub\wwwroot\Kentico82\WebSite.sln" but it didn't work for me.

​ Can you please explain procedure to use Kentico code upgrade tool and there commands in a stepwise process.

Recent Answers


Brenden Kehren answered on May 18, 2016 14:20

It's only strongly recommended you run the Kentico Code Upgrade tool, not a requirement. If your installation was standard and you have minimal to no custom code then I'd suggest skipping this step as it will just overwhelm you with a lot of false positives.

My suggestion, if you have a backup of your site (code and database) just run the upgrade using the Kentico Installation Manager (KIM) on the backups of your site locally and see how they go. If you do not have a backup then make one! The upgrade from 8.2.x to 9 is pretty painless so I'd try that first before you use the code upgrade tool.

0 votesVote for this answer Mark as a Correct answer

sayali deshpande answered on May 19, 2016 09:45

My site is having lot of custom code and It needs to upgrade Can you tell me how to use this tool and how to execute commands for this tool on command prompt.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on May 19, 2016 10:04

Hi,

Did you get an error when running the tool? Do you have website projects in a different location than the root of your .sln file? than you might need to include the -websites=

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 19, 2016 14:17

I can tell you how to use it but it won't be any different than what the instructions are Sayali. If you're getting errors, please post the errors. If you just cannot continue, then I'd suggest contacting Kentico Support.

0 votesVote for this answer Mark as a Correct answer

sayali deshpande answered on May 20, 2016 14:01

Hey Brenden , Kentico code upgrade tool worked for me now. I guess there was some .net framework related issues. Thanks.

After this I run Upgrade_8_2_9_0.exe And Now I facing lots of issues. It will be really helpful if you could guide how to resolve this.

Exception Details: System.Exception: There was an error processing the page. The error can be caused by the configuration of some component on the master page. Check the master page configuration or see event log for more details. Original message:

SELECT [DocumentUrlPath], [NodeAliasPath], [SiteName], [DocumentMenuItemInactive], [DocumentName], [DocumentCulture], [NodeID], [NodeLinkedNodeID], [NodeSiteID], [ClassName], [NodeLevel], [NodeOrder], [NodeParentID], [DocumentCheckedOutVersionHistoryID] FROM View_CMS_Tree_Joined AS V WITH (NOLOCK, NOEXPAND) INNER JOIN CONTENT_MenuItem AS C WITH (NOLOCK) ON V.DocumentForeignKeyValue = C.MenuItemID AND V.ClassName = N'CMS.MenuItem' LEFT OUTER JOIN COM_SKU AS S WITH (NOLOCK) ON V.NodeSKUID = S.SKUID WHERE [NodeSiteID] = @NodeSiteID AND (MenuItemGroup = 'footer') AND [DocumentCulture] = @DocumentCulture ORDER BY NodeLevel, NodeOrder

Caused exception: Invalid column name 'SiteName'.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 23, 2016 04:29

As I posted on your Stackoverflow post, the issue is because:

"The column SiteName was removed in v9. Here's an article talking about it. Here are the release notes for v9. So you'll have to log into the Admin site and to to Page Templates and modify your listing repeaters in there to remove the SiteName column.

UPDATE

What you can do to get a list of templates which have SiteName is to run a SQL script like so:

SELECT * FROM CMS_PageTemplate WHERE PageTemplateWebParts like '%sitename%'

This will give you a list of templates which have webparts that the property or value of SiteName in them."

0 votesVote for this answer Mark as a Correct answer

sayali deshpande answered on May 25, 2016 14:10

Hi

We are trying to upgrade the site from Kentico 8.2 To Kentico 9. In this there is lot of custom code.

We are using Code Upgrade tool as mentioned in the documentation to upgrade the code: Please check this Upgrade Tool Error Link

It will be really helpful if you could help us in this.

Regards,
Sayali

0 votesVote for this answer Mark as a Correct answer

Srikanth N answered on November 13, 2017 10:11

Hi Sayali,

  1. First of all, run command prompt as admin.
  2. Remove Read only option in folder options.
  3. Include the path of the solution inside the Quotes("%path%").
  4. Make sure you need to give full path of the solution (include WebSite.sln also). If you miss the casing also will bring chances for errors.

This will mostly solve the problem.

Cheers, Srikanth

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.