
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JayMcCormack.com &#187; cms</title>
	<atom:link href="http://www.jaymccormack.com/index.php/tag/cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaymccormack.com</link>
	<description>It&#039;s not about you</description>
	<lastBuildDate>Sat, 28 May 2011 20:33:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Kentico Upgrade</title>
		<link>http://www.jaymccormack.com/index.php/2009/03/24/kentico-upgrade/</link>
		<comments>http://www.jaymccormack.com/index.php/2009/03/24/kentico-upgrade/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 12:08:21 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[kentico]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.jaymccormack.com/index.php/2009/03/24/kentico-upgrade/</guid>
		<description><![CDATA[Two days ago I completed the upgrade of newagestore.com from Kentico 3.1a to 4.0.&#160; This took roughly 4 hours to do, the process I took was a little laborious but perhaps the safest.

Backups and double checking backups all round
I took a backup of the database and then restored it into a new database
I took a complete copy of the site on the file system of the server and pointed it at my new database in the web.config
Created a new site in IIS to point to this new folder with a ...]]></description>
			<content:encoded><![CDATA[<p>Two days ago I completed the upgrade of newagestore.com from Kentico 3.1a to 4.0.&#160; This took roughly 4 hours to do, the process I took was a little laborious but perhaps the safest.</p>
<ol>
<li>Backups and double checking backups all round</li>
<li>I took a backup of the database and then restored it into a new database</li>
<li>I took a complete copy of the site on the file system of the server and pointed it at my new database in the web.config</li>
<li>Created a new site in IIS to point to this new folder with a subdomain of staging.newagestore.com
<p>At this time I now had basically a working replica of the site ready for upgrade.&#160; This enabled me to work on the upgrade (which I had done locally first anyway just to check everything) without disrupting the live site.      </li>
<li>Upgrade the database using the upgrade script provided
<p>Initially when I tried this on my local system I found a few problems.&#160; Primarily these problems related to custom indexes I had added to a couple of tables in an attempt to increase performance.&#160; On my test system I removed these custom indexes and was able to upgrade smoothly, so on the production server I dropped these custom indexes prior to the script being run.&#160; It ran without errors, and at this stage I haven’t put the custom indexes back onto the tables… all seems ok for the moment.      </li>
<li>Copy the new files into the new folder structure as per the instructions.
<p>This was actually a little messy.&#160; The instructions say to do things like “delete the web parts directory”&#160; the problem of course with this approach is that any custom web parts that you might have built will be wiped out if that is where you happened to store them.&#160; I found that I had custom code in the app_code directory, cmsdesk/modules directory and cmswebparts directory.&#160; So I of course copied this code out first, then deleted folders as per the instructions.      </li>
<li>Loaded the site to let the upgrade to the database occur.&#160; All smooth.
<p>When I did this step on my local system it appeared to get through OK however none of the new web parts etc were available in the CMS after the upgrade.&#160; This did not happen on the production system, it all went fine.&#160; So on the test system/local I went into the admin area and ran the import for the 3.1a to 4.0 as per the instructions and everything then came together ok.      </li>
<li>Added back in my custom code.</li>
<li>Turned off the old site in IIS and turned on the new one and then changed the host header to www in the new site (instead of staging) and then changed the license key in the new site also.</li>
</ol>
<p>So the result is an upgraded CMS website.&#160; The average visitor is not going to notice the difference… yet!</p>
<p>The key reason for our upgrade was to take advantage of the new social networking functions, we were licensed for the enterprise version of Kentico and so are granted a license for the new social networking version of Kentico.&#160; We haven’t turned on these tool on the site yet, we are just playing with a few different ways to bring them into the fold.</p>
<p>A few things to be aware for the upgrade:</p>
<ul>
<li>I had a couple of pieces of code that called the ‘executenonquery’ method of the data connection object.&#160; This appears to be gone in 4.0, so in my case I simply converted these to ‘executequery’ with no real impact.</li>
<li>Make sure you have all your license keys before hand.&#160; I have a license for the main domain, plus subdomains of local, test and staging.&#160; So I have few options for working things out before getting too stuck.</li>
<li>The menu web part and the breadcrumb web parts appear to have a new property called ‘encode name’.&#160; Maybe it was there in previous version and I just never saw it.&#160; Anyway it doesn’t appear to have been updated correctly during the upgrade as some instances of this part have this ticked and other do not.&#160; I had to go and manually chance the config of that part on those templates, no big deal but didn’t discover it until today.&#160; The problem was that some of my breadcrumbs were being rendered as &lt;span&gt;divination&lt;/span&gt; – blah – blah and of course I didn’t want the &lt;span&gt; tags visible.</li>
<li>The standard blogpostpreview transformation seems to be missing one of the function calls that counts the number of comments for each post.&#160; I have temporarily removed that element from the transformation just to get the blog posts working.</li>
<li>One of the big changes in version 4.0 is module separation.&#160; Kentico have moved around the structure of modules in the folder structure so that they are isolated from other parts of the site structure.&#160; This is a better design but a little difficult to adapt the 3 custom modules I have built into this new architecture.&#160; At the moment I still have my custom code in the old places and will need to move it all around when I can.</li>
</ul>
<p>So in all a fairly smooth upgrade. Oh.. one more thing.&#160; The sample community site that has all the social networking functionality is pretty cool, however there doesn’t appear to be a simple way of reproducing this functionality in a new site.&#160; Unlike creating a blog which is a pretty quick process where Kentico does all the hard work of creating pages and webparts and configuring those, creating a social networking site appears to be something you have to do by hand from scratch.&#160; I have a support call into them to see if there is a better way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaymccormack.com/index.php/2009/03/24/kentico-upgrade/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

