Upgrades Questions on upgrading to version 5.x.
Version 5.x > Upgrades > Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0 View modes: 
User avatar
Member
Member
aconde-sequenom - 6/10/2010 6:36:58 PM
   
Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
What is the procedure for upgrading from 5.0 to 5.5 AND going from .NET 3.5 to 4.0?

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/10/2010 7:50:04 PM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hello,

you can find upgrade procedure package from 5.0 to 5.5 at http://www.kentico.com/Download/Upgrades.aspx
The upgrade instructions are included in the package.

The package contains binaries for .NET 3.5 and 2.0. If you wish to use the upgraded 5.5 version under .NET 4.0, you will probably need to install fresh 5.5 instance and either export the upgraded 5.5 site and import it into the fresh 5.5 (installed for .NET 4.0) site.
Or, you could use the same database and just copy any existing customized files (except DLL libraries) from upgraded installation over the fresh installation files ...

Hope this helps.
Regards,
Zdenek

User avatar
Member
Member
Mark - 10/27/2010 12:02:04 PM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Why would you need a fresh installation?

Can you do the same from 5.0 .net 2.0 to 5.5 .net 4.0?

I have four sites to upgrade: 3 Kentico 5.0 .net 2.0 and 1 Kentico 5.5 .net 2.0.

I want to take all of them to 5.5 .net 4.0.

Any suggestions?

Mark

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/28/2010 2:11:03 AM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hello,

Regrettably, there are no standalone .NET 4.0 DLLs in the upgrade package included, so you need to get them from e.g. a clean installation together with the web.config file. Otherwise you can proceed by the upgrade instructions included in the upgrade package.

Best regards,
Boris Pocatko

User avatar
Member
Member
Mark - 11/3/2010 1:17:54 PM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Are there any issues with licensing? I have four sites running with four licenses I need to move to .NET 4.0 (three of them need to be upgraded to Kentico 5.5 - should I do that first?)

As I understand what you have explained, all I need to do is backup each site, stand up a new instance of Kentico for each site (making sure to select .NET 4.0 as the preferred version), and install the backup files in the new site (except for those you indicated).

Is this correct?

:>
Thank you,
Mark

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/9/2010 4:04:53 PM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hello,

If you have a license for the 5.x version you don't need any other licenses. It works also for the 5.5 version.

The best way would be to install a fresh 4.0 .NET copy of Kentico 5.5. Now upgrade your sites to Kentico 5.5 (with the old .NET version 2.0 or 3.5). Now you can simply export the site and import it into the 5.5 version of Kentico with .NET 4.0.

Another way would be to upgrade the sites as described above, but instead of importing and exporting the sites into a clean installation, just replace the web.config file and the dll files with files from an clean Kentico 5.5 .NET 4.0 installation.

Best regards,
Boris Pocatko

User avatar
Member
Member
Mark - 11/10/2010 10:35:23 AM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
I'll give it a try.

I think I'll attempt the .NET 2-4 upgrade on the 5.5 site first.

I'll set up a clean 4.0 site to grab files for all of the sites.

Then I'll try swapping the web.config and dlls as you suggested.

Thanks,
Mark

User avatar
Member
Member
Mark - 11/18/2010 12:17:13 PM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Having problems getting back into CMSdesk:

Server Error in '/' Application.
[DataConnection.ExecuteQuery]: Query: UPDATE CMS_User SET [UserName] = @UserName, [FirstName] = @FirstName, [MiddleName] = @MiddleName, [LastName] = @LastName, [FullName] = @FullName, [Email] = @Email, [UserPassword] = @UserPassword, [PreferredCultureCode] = @PreferredCultureCode, [PreferredUICultureCode] = @PreferredUICultureCode, [UserEnabled] = @UserEnabled, [UserIsEditor] = @UserIsEditor, [UserIsGlobalAdministrator] = @UserIsGlobalAdministrator, [UserIsExternal] = @UserIsExternal, [UserPasswordFormat] = @UserPasswordFormat, [UserCreated] = @UserCreated, [LastLogon] = @LastLogon, [UserStartingAliasPath] = @UserStartingAliasPath, [UserGUID] = @UserGUID, [UserLastModified] = @UserLastModified, [UserLastLogonInfo] = @UserLastLogonInfo, [UserIsHidden] = @UserIsHidden, [UserVisibility] = @UserVisibility, [UserIsDomain] = @UserIsDomain, [UserHasAllowedCultures] = @UserHasAllowedCultures, [UserSiteManagerDisabled] = @UserSiteManagerDisabled WHERE [UserID] = @UserID: caused exception: Must declare the scalar variable "@UserSiteManagerDisabled".
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: [DataConnection.ExecuteQuery]: Query: UPDATE CMS_User SET [UserName] = @UserName, [FirstName] = @FirstName, [MiddleName] = @MiddleName, [LastName] = @LastName, [FullName] = @FullName, [Email] = @Email, [UserPassword] = @UserPassword, [PreferredCultureCode] = @PreferredCultureCode, [PreferredUICultureCode] = @PreferredUICultureCode, [UserEnabled] = @UserEnabled, [UserIsEditor] = @UserIsEditor, [UserIsGlobalAdministrator] = @UserIsGlobalAdministrator, [UserIsExternal] = @UserIsExternal, [UserPasswordFormat] = @UserPasswordFormat, [UserCreated] = @UserCreated, [LastLogon] = @LastLogon, [UserStartingAliasPath] = @UserStartingAliasPath, [UserGUID] = @UserGUID, [UserLastModified] = @UserLastModified, [UserLastLogonInfo] = @UserLastLogonInfo, [UserIsHidden] = @UserIsHidden, [UserVisibility] = @UserVisibility, [UserIsDomain] = @UserIsDomain, [UserHasAllowedCultures] = @UserHasAllowedCultures, [UserSiteManagerDisabled] = @UserSiteManagerDisabled WHERE [UserID] = @UserID: caused exception: Must declare the scalar variable "@UserSiteManagerDisabled".

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: [DataConnection.ExecuteQuery]: Query: UPDATE CMS_User SET [UserName] = @UserName, [FirstName] = @FirstName, [MiddleName] = @MiddleName, [LastName] = @LastName, [FullName] = @FullName, [Email] = @Email, [UserPassword] = @UserPassword, [PreferredCultureCode] = @PreferredCultureCode, [PreferredUICultureCode] = @PreferredUICultureCode, [UserEnabled] = @UserEnabled, [UserIsEditor] = @UserIsEditor, [UserIsGlobalAdministrator] = @UserIsGlobalAdministrator, [UserIsExternal] = @UserIsExternal, [UserPasswordFormat] = @UserPasswordFormat, [UserCreated] = @UserCreated, [LastLogon] = @LastLogon, [UserStartingAliasPath] = @UserStartingAliasPath, [UserGUID] = @UserGUID, [UserLastModified] = @UserLastModified, [UserLastLogonInfo] = @UserLastLogonInfo, [UserIsHidden] = @UserIsHidden, [UserVisibility] = @UserVisibility, [UserIsDomain] = @UserIsDomain, [UserHasAllowedCultures] = @UserHasAllowedCultures, [UserSiteManagerDisabled] = @UserSiteManagerDisabled WHERE [UserID] = @UserID: caused exception: Must declare the scalar variable "@UserSiteManagerDisabled".]
CMS.DataProviderSQL.DataConnection.ExecuteQuery(String queryText, Object[,] queryParams, QueryTypeEnum queryType) +455
CMS.DataEngine.GeneralConnection.RunQuery(QueryParameters query) +548
CMS.DataEngine.GeneralConnection.ExecuteQuery(QueryParameters query) +484
CMS.DataEngine.GeneralConnection.ExecuteQuery(String queryName, Object[,] parameters) +44
CMS.DataEngine.SimpleDataClass.Update() +319
CMS.DataEngine.AbstractInfo.Update() +564
CMS.Staging.SynchronizedInfo.Update() +39
CMS.SiteProvider.UserInfoProvider.SetUserInfoInternal(UserInfo user, GeneralConnection conn) +276
CMS.SiteProvider.UserInfoProvider.AuthenticateUser(String userName, String password, String siteName, Boolean login) +1038
CMS.MembershipProvider.CMSMembershipProvider.ValidateUser(String username, String password) +39
System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +234
System.Web.UI.WebControls.Login.AttemptLogin() +166
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +91
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +52
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Tried the package fix mentioned in another post (4.0 to 4.1 problems) and as suggested by a later poster (who was also upgrading 5.0 to 5.5 like me) ran the packages suggested by Juraj, but it did not solve the problem.

Mark

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/22/2010 3:07:51 AM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hello,

This is an upgrade issue. It is caused by not following exactly all the upgrade steps as for example not stopping the site during the upgrade. Could you please try to perform the upgrade once more?

Best regards,
Boris Pocatko

User avatar
Member
Member
Mark - 11/19/2010 1:44:39 PM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
I was successful upgrading one of my sites from 5.0 .NET 2.0 to 5.5 .NET 4.0.

I am now working on upgrading the one site that was built with Kentico 5.5 .NET 2.0.

I copied the Bin directory from the clean .NET 4.0 install I created and also the web.config over to the site. I took the site off-line first. After modifying the web.config, I went into the server and switched the site over to .NET 4.0 in IIS7. (Integrated)

The site has a custom login page to restrict access. It does not appear to be functioning correctly. When I am able to get into the site, I cannot open CMSDesk. I get a "Server Error in '/' Application." or 'An error occurred processing your request at URL /CMSTemplates/CorporateSiteASPX/PhotoGallery.aspx."

I haven't found any posts that address problems like this. Any suggestions?

Mark

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/22/2010 3:32:47 AM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hello,

Could you please post a more detailed error message regerding this issue? Please check the Kentico Event log, if there is a related exception.

Best regards,
Boris Pocatko

User avatar
Member
Member
Mark - 11/22/2010 7:22:15 AM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hi Boris,

Unfortunately, I'm not getting one. The web.config is set to alllow it, but nothing is showing other than what I mentioned.

Very strange.

Thanks,
Mark

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/22/2010 8:20:35 AM
   
RE:Upgrade from 5.0 .NET 3.5 to 5.5 .NET 4.0
Hello,

I've checked a default installation and the PhotoGalery file seems not to be a part of it. I would suggest you to run the site in the debug mode in Visual Studio and try to debug the mentioned file.

Best regards,
Boris Pocatko