Issue overriding editor UI language values

EPiServer.CMS.UI 8.6.1

We have added an xml language file to override a specific editor UI value. Example content of the xml file:


When going into the EPiServer edit mode an error occurs which prevents it from rendering. The underlying error is:

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at EPiServer.Shell.UI.Controllers.EPiResourcesController.GetResourceDictionary(String resourceKey, CultureInfo culture)
   at EPiServer.Shell.UI.Controllers.EPiResourcesController.DojoResources(String pathInfo)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.

Is it not possible to override existing keys, or should it be done differently?

#140295
Oct 15, 2015 10:04

Hi

Did you solve this, or find out how to prevent the error? We have the same problem now and again without a clear reason why.

We use Episerver.UI 8.3.0.0

#148270
May 09, 2016 9:26
* 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.