Try our conversational search powered by Generative AI!

Error when auto-translating in Commerce

Found in

EPiServer.Labs.LanguageManager 3.0.3

Fixed in

EPiServer.Labs.LanguageManager 3.0.3

(Or a related package)

Created

Oct 06, 2017

Updated

Nov 03, 2017

State

Closed, Fixed and tested


Description

If you install the Language manager & do not add the LM setting, Page1 is created on English(master), Svenska

Steps to reproduce

1. Add a Language gadget to Edit View.
2. Open a page (not the master version).
3. Right click setting.
4. Click Auto translate.

Expected: The Auto translate option is disabled.
Actual: Error listed below.

  • Value cannot be null.
    Parameter name: type

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: System.ArgumentNullException: Value cannot be null.
Parameter name: type

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:

[ArgumentNullException: Value cannot be null.Parameter name: type] System.Activator.CreateInstance(Type type, Boolean nonPublic) +13800168 System.Activator.CreateInstance(Type type) +12 EPiServer.Labs.LanguageManager.Business.MachineTranslatorManager.GetProvider(String providerTypeName, String subscriptionKey, Boolean& isInitSuccessfully) +158 EPiServer.Labs.LanguageManager.Business.<>c_DisplayClass17_0.<TranslateAndCopyDataFromMasterBranch>b0(Object obj) +190 EPiServer.Labs.LanguageManager.Business.LanguageBranchManager.CopyDataFromMasterBranch(ContentReference contentReference, String fromLanguageID, String toLanguageID, Func`2 transformOnCopyingValue, ContentReference& createdContentLink, Boolean autoPublish) +544 EPiServer.Labs.LanguageManager.Business.LanguageBranchManager.TranslateAndCopyDataFromMasterBranch(ContentReference contentReference, String fromLanguageID, String fromTwoLetterLanguageName, String toLanguageID, String toTwoLetterLanguageName, ContentReference& createdContentLink, Boolean autoPublish) +425 EPiServer.Labs.LanguageManager.Controllers.LanguageStore.CloneOrTranslateDataFromMasterBranch(String contentLink, String languageID, String twoLetterISOLanguageName, Boolean cloneOrTranslate, IEnumerable`1& createdContentLinks) +329 EPiServer.Labs.LanguageManager.Controllers.LanguageStore.TranslateAndCopyDataFromMasterBranch(String contentLink, String languageID, String twoLetterISOLanguageName) +40 lambda_method(Closure , ControllerBase , Object[] ) +238 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35 System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39 System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +67 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b3d() +72 System.Web.Mvc.Async.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() +386 System.Web.Mvc.Async.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() +386 System.Web.Mvc.Async.<>cDisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b3f() +386 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.<>cDisplayClass2b.<BeginInvokeAction>b1c() +38 System.Web.Mvc.Async.<>cDisplayClass21.<BeginInvokeAction>b_1e(IAsyncResult asyncResult) +186 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38 EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult) +60 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +399 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157

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