Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Bug with Norwegian language

Vote:
 

EPiServer 7.5

It seems that EPiServer is not correctly working with some cultures like Norwegian. To reproduce an issue, please add one of the following languages inside the "Manage Websites Language":

  • norsk, nynorsk (Noreg) nn-NO
  • norsk no
  • norsk (bokmål) nb 
  • norsk, bokmål (Norge) nb-NO

Then do the following steps:

  • Create Start page
  • Create Some page inside it
  • Try to copy & paste

Or just use something like this: ServiceLocator.Current.GetInstance().GetDefault(createAssetFolder.ContentLink, (ILanguageSelector) new LanguageSelector(language.TwoLetterISOLanguageName));

Server Error in '/' Application.

Invalid language 'nn' selected.

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: EPiServer.Core.EPiServerException: Invalid language 'nn' selected.

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:


[EPiServerException: Invalid language 'nn' selected.]
EPiServer.Core.LanguageSelectorContext.get_SelectedLanguageBranch() +188
EPiServer.Construction.ContentDataBuilder.SetLanguageProperties(IContent content, ILanguageSelector languageSelector) +265
EPiServer.Construction.ContentDataBuilder.AddProperties(IContentData contentData, BuildingContext buildingContext) +140
EPiServer.Construction.ContentFactory.CreateContent(ContentType contentType, BuildingContext buildingContext) +113
EPiServer.Core.DefaultContentRepository.GetDefault(ContentReference parentLink, Int32 contentTypeID, ILanguageSelector selector) +237
EPAM.EPi.Extensions.Helpers.BlockStructureHelper.CreateBlockForPage(ContentReference pageReference, String blockName, SaveAction saveAction, AccessLevel accessLevel, CultureInfo language) in c:\Program Files (x86)\Applications\Jenkins\jobs\EPAM.EPi.Extensions - NuGet\workspace\EPiServerExtensions\EPAM.EPi.Extensions\Helpers\BlockStructureHelper.cs:48
Primera.Site.WebUI.Models.Pages.HotelPage.OnCreatedContent(Object sender, ContentEventArgs e) in c:\Jenkins_WS\PTG_Release_Build\Primera\Primera\Models\Pages\HotelPage.cs:83
System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0
EPiServer.Core.DefaultContentEvents.RaiseContentEvent(String key, ContentEventArgs eventArgs) +137
EPiServer.Core.DefaultContentRepository.RaisePostSaveEvents(SaveContentEventArgs eventArgs, Boolean isNew, Boolean isSave) +92
EPiServer.Core.DefaultContentRepository.Save(IContent content, SaveAction action, AccessLevel access) +562
EPiServer.Cms.Shell.UI.Rest.ContentChangeManager.CreateContent(ContentReference parentLink, Int32 contentTypeId, Nullable`1 resourceFolderId, Boolean createAsLocalAsset, String name, IDictionary`2 properties, SaveAction saveAction) +435
EPiServer.Cms.Shell.UI.Rest.ContentChangeManager.Create(ContentReference parentLink, Int32 contentTypeId, Nullable`1 resourceFolderId, Boolean createAsLocalAsset, String name, IDictionary`2 properties, Boolean autoPublish) +245
EPiServer.Cms.Shell.UI.Rest.ContentDataStore.Post(PostContentModel entity) +435
lambda_method(Closure , ControllerBase , Object[] ) +127
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +249
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
System.Web.Mvc.<>c__DisplayClass13.b__10() +87
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +553
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +553
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +553
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +553
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +280
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +746
EPiServer.Shell.Services.Rest.RestControllerBase.ExecuteCore() +222
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +101
EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContextBase httpContext) +271
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1408
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +2413
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +115

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

#139969
Oct 12, 2015 13:17
Vote:
 

Can anyone assist?

#141297
Nov 11, 2015 14:03
Vote:
 

Hi Aliaksei,

I'm having the same problem with Norwegian language content (no) in the editor interface translating to an "nb" two letter code and preventing the content from being visible.

Did you find a solution to the problem at all?

Thanks,

Matt

#142150
Dec 02, 2015 16:53
* 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.