Brian McKeiver's Blog

Kentico CMS 6.0 Upgrade Quick Tip

Lately at BizStream we have been doing more and more upgrades of Kentico CMS 5.5 R2 to Kentico CMS 6.0. During the latest upgrade project we came across a very curious error while using the Kentico CMS Installation Manager.




As you can see in the screenshot above, the automated upgrade process was stopping at a point and complaining about some sort of Directory Validation error.

We tried to change our paths for where the Kentico installation was installed and a few other random things, but kept banging into a wall on this exact spot no matter what we tried. That fact started to make me thing that it had nothing to do with code that we were updating and more to do with the Installation Manager.

The next thing we thought to try was to check out what options or settings that there were in the Installation Manager. The General tab didn’t seem to have anything relevant, but we had never actually hit the Cache tab before, and sure enough the Cache tab mentioned something about a directory.




We weren't quite sure what this meant but the worse case scenario seemed to be that we would just have to download the package again, so we clicked Delete to clear the cache. After that we restarted the process, and sure enough we did have to re-download the upgrade, but with this new copy the entire upgrade process worked.

My theory is that it had been awhile since we had last downloaded the upgrade package with this tool. Since the application possibly saves the download into a temp directory on the hard drive somewhere, as time went by, that temp directory was cleaned up automatically or something like that.

The important thing to remember is that clearing the cache seems to resolve the Directory Validation error that you may experience when using the Kentico Installation Manager.

I hope this post saves some time for the next developer that runs into this issue.