Upgrades Questions on upgrading to version 5.x.
Version 5.x > Upgrades > KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0 View modes: 
User avatar
Member
Member
Yash - 9/12/2012 10:01:23 AM
   
KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hello,

I am currently using 5.5.4.188 R2 with .net 3.5 and planning to convert it to .net 4.0. Do you have any procedure which I could use to upgrade to .net 4.0? The ultimate goal is to upgrade existing site to Kentico CMS 6.0 with .net 4.0.

Thanks,
Yash



User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/12/2012 10:28:23 AM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hi Yash,

the simplest solution in this case will be using the Kentico Upgrade which moves your site from 5.5 R2 right into the 6.0 (btw. do you know that from Kentico v6 there is in-built KIM - Kentico Installation Manager which automates process of future upgrades and hotfixes).

And to upgrade .NET to 4.0 you have to modify web.config and DLL files.

For more details read the following thread: Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0

Best regards,
Martin Danko

User avatar
Member
Member
Yash - 9/12/2012 10:38:29 AM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hello Kentico_Martind2,

I know that Kentico Upgrade fix will upgrade 5.5 R2 to 6.0 but currently I have 5.5 R2 in .net 3.5 and the basic requirement for the 6.0 is .net 4.0 and that's why I was mentioning is there any steps i.e to convert existing 5.5 R2 to 4.0 first before upgrade to 6.0 or once you upgrade to 6.0 from .net 3.5 you need to change list of files and web.config file parameters to meet 4.0. I had done couple of tries to upgrade in test mode but everytime I am ending up in unknown issue and I am not finding any solution.

Thanks for your suggestion and input.

Appreciate more easy guide and upgrade procedures.

Thanks,

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/12/2012 11:08:12 AM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hi Yash,

.NET 4.0 is not really required for using Kentico 6 it's just recommended. So you can use the upgrade to move to 6.0 with no worries.
After that you can optionally upgrade your .NET version.

To upgrade .NET to 4.0 try the following steps:
1. Install fresh Kentico CMS 5.5 with .NET 4.0 option.
2. In this case .NET 4.0 web.config, solution file (WebProject.sln) and dll files will be created. So, you can simply use (copy) the new .NET 4.0 web.config file, dll files and solution file in your current Kentico CMS project of version 5.5 which uses .NET 3.5.

I hope this will help you.

Best regards,
Martin Danko

User avatar
Member
Member
Yash - 9/12/2012 11:14:56 AM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hello Martin,

Thanks for the clarification. But I believe I will need VS 2010 to use .net 4.0 am I right?

As I am using VS 2008 I will stay with .net 3.5 for some time and once VS 2010 installed I will move to .net 4.0.

Here is what I am planning.
Upgrade 5.5 with 3.5 to CMS 6.0 with 3.5
Future - CMS 6.0 to .net 4.0 with VS 2010. Fresh install of 6.0 with 4.0 and copy Solution file (WebProject.sln) and web.config file to CMS 6.0.

Also do I need to consider this when upgrading to 6.0 from 5.5?
http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_potentially_dangerous.htm

Thanks again for your help.
Yash

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 9/12/2012 11:38:23 AM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hi Yash,

I fully understand you. Of course, stay approporiate time with VS 2008 and .NET 3.5, no problem!

I don't think you have to consider some problems but... something might happen.
If there will be any problem, contact us without any hesitation by e-mail on support(at)kentico.com.

Best regards,
Martin Danko

User avatar
Member
Member
Yash - 9/13/2012 1:16:25 PM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hello Martin,

I successfully upgrade to Kentico 6.0 in test environment. But I am getting following errors on each image files.
-------------------------------------------------------
EventDescription: Message: [DocumentHelper.GetAttachment]: Attachment with given GUID not found in document version.
Stack Trace:
at CMS.WorkflowEngine.DocumentHelper.GetAttachment(TreeNode node, Guid attachmentGuid, TreeProvider tree, Boolean includeBinary)
at CMSModules_Content_CMSDesk_View_ViewFile.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at CMS.UIControls.CMSPage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any suggestion?

Thanks,
Yash

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/14/2012 2:51:12 AM
   
RE:KenticoCMS 5.5.4188 R2 - .net 3.5 to .net 4.0
Hi,

could you please check this forum? It seems that there was some bug related to attachment and workflow, and suggestions the thread may help.

Best regards,
Ivana Tomanickova