Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Upgrading from 4.0 to 4.1 issues View modes: 
User avatar
Member
Member
agerace-ag.state.oh - 10/23/2009 8:29:09 AM
   
Upgrading from 4.0 to 4.1 issues
We are getting the following error when upgrading..

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1501: No overload for method 'UpdateCurrentSession' takes '0' arguments

Source Error:



Line 291: if (SettingsKeyProvider.GetBoolValue("CMSUseSessionManagement") && !UrlHelper.IsExcludedSystem(URLRewriter.CurrentRelativePath))
Line 292: {
Line 293: SessionManager.UpdateCurrentSession();
Line 294: }
Line 295: }

Any help would be appreciated.


User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/23/2009 9:02:53 AM
   
RE:Upgrading from 4.0 to 4.1 issues
Hi,

You are using old files (4.0) over the new dll files (4.1). Are you sure that you have copied the new files (all of them) from the upgrade package into your current upgraded project folder?

Best Regards,
Miroslav Remias.

User avatar
Member
Member
Lee.Gerhardstein-ohioattorneygeneral - 10/23/2009 11:37:15 AM
   
RE:Upgrading from 4.0 to 4.1 issues
Yes, I deleted the files and folders listed in step 5 of the instructions. This was done after the database upgraded. I then copied all files from files subfolder over to the current project folder from the files folder with the exception of bin subfolder. We are using .net3.5 so for this i used the files from the .net 3 5 subfolder. I've tried this on two different projects on two different environments now.

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/26/2009 2:22:35 AM
   
RE:Upgrading from 4.0 to 4.1 issues
Hi,

You must be doing something wrong, since there is no such code:

Line 293: SessionManager.UpdateCurrentSession();

in ~\App_Code\Global.asax.cs file anymore in version 4.1, so it seems that you are using old (4.0) Global.asax.cs file. Could you please check this fact?

Best Regards,
Miroslav Remias.

User avatar
Member
Member
Lee.Gerhardstein-ohioattorneygeneral - 10/26/2009 10:29:53 AM
   
RE:Upgrading from 4.0 to 4.1 issues
File from new app_code directory in Upgrade software
Global.asax.cs 48kb cs file 8/18/2009 8:49 AM A


File from app_code directory in my project after being copied from upgrade software
Global.asax.cs 48kb cs file 8/18/2009 8:49 AM A

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/27/2009 4:14:08 AM
   
RE:Upgrading from 4.0 to 4.1 issues
Hi,

I have checked the upgrade package (4.0 to 4.1) and there is global.asax.cs file included which doesn’t contain following line of code:

Line 293: SessionManager.UpdateCurrentSession();

Could you please open your global.asax.cs file and check if it contains mentioned line of code?

If this is the case, you are using old global.asax.cs file.

Please open the upgrade package and copy global.asax.cs file from /Files/App_Code/ folder over your existing file.

Best Regards,
Miroslav Remias.

User avatar
Member
Member
agerace-ag.state.oh - 10/28/2009 11:28:33 AM
   
RE:Upgrading from 4.0 to 4.1 issues
I think the problem we are having is we have the App_Code directory split into CSCode and VBCode

How do we upgrade with this type of setup?


User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/30/2009 5:35:54 AM
   
RE:Upgrading from 4.0 to 4.1 issues
Hi,

I have not seen such approach before, so I’m really don’t know how to solve this issue. Easiest way would be to use standard approach and use the standard Kentico CMS folder structure under App_Code directory or you need to update both CSCode and VBCode folders with latest Kentico Kentico CMS files. Kentico CMS comes by default only in C# version.

Best regards,
Miroslav Remias.