Installation and deployment
Version 7.x > Installation and deployment > error after hotfix upgrade from 7.27 to 7.43 View modes: 
User avatar
Member
Member
anshuman.shandilya-aonhewitt - 7/10/2013 10:38:25 AM
   
error after hotfix upgrade from 7.27 to 7.43
Hi,

I upgraded my kentico environment from 7.27 to 7.43.
After upgrade, I am getting error on login page.
Root cause is that I am getting HttpContext.Current.Session object as null when page postback after hitting Login button.
I am using ASP.NET Login control (<asp:Login id="Login1">) and I want to use HttpContext.Current.Session in Login1_LoggingIn event handler. It was working fine in 7.27

Also on a different machine I upgraded till 7.39 and it worked there too. So I think something is changed from 7.40 to 7.43.

Please help

Regards
Anshuman

User avatar
Member
Member
kentico_sandroj - 7/10/2013 9:25:15 PM
   
RE:error after hotfix upgrade from 7.27 to 7.43
Hello,

You can check the full list of changes here. If you would like us to take a look at the code please paste it here. May I ask why you're not using Kentico controls and methods?

You can set the context like this:

CMSContext.AuthenticateUser("UserName", true, true); 

OR
CMSContext.CurrentUser = new CurrentUserInfo(ui, true);


Please let me know if you have any questions or additional information.

Regards,
Sandro