Try our conversational search powered by Generative AI!

EPiServer 9 Upgrade - Context is missing in EPiServer.BaseLibrary


I'm using following im my project


but after EPiServer 9 upgrade, i'm getting that "Context" is not available in the "EPiServer.BaseLibrary" any more. So what shall I do ?

Oct 25, 2015 0:57

BaseLibrary and Implementation assemblies were removed in EPiServer v9. Use:

Oct 25, 2015 8:17

Valdis, if i want to change the ContentLanguage, if I set it as follow,is it correct ?

var culture = new CultureInfo("no");

ContentLanguage.PreferredCulture = culture;

Oct 26, 2015 7:48

I would be cautious with this.. What is usage scenario for you? Why you are changing content language? Are you switching to different language in the site or need to fetch content in different langauge?

Oct 26, 2015 9:25

I'm using this code in a situation where switching to different language in the site

There is a possibility of setting it is as


but i'm not sure which one to use

Edited, Oct 26, 2015 11:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.