Editable Area error in MVC tutorial.

Edgar Chiroldes asked on March 9, 2020 15:53

Hi, I installed the Kentico cms with a free license on my local PC. I'm going through the MVC development tutorial, in the section 'Displaying the page content "add to the view" @ Html.Kentico (). EditableArea ("editableArea") "according to the tutorial, but on the public site I get the following error:

License for feature 'ABTesting' not found. Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: CMS.DataEngine.LicenseException: License for feature 'ABTesting' not found.

Error de código fuente:

Línea 25: Línea 26: @* Inserts a page builder editable area, allowing modular content composition using widgets *@ Línea 27: @Html.Kentico().EditableArea("editableArea") Línea 28: Línea 29:

Archivo de origen: E:\Kentico\TestProyect\Views\home\Index.cshtml Línea: 27

Seguimiento de la pila:

[LicenseException: License for feature 'ABTesting' not found.] CMS.LicenseProvider.LicenseHelperInternal.ReportLicenseError(String redirectUrl, String message) +111 CMS.LicenseProvider.LicenseHelper.ReportFailedLicenseCheck(FeatureEnum feature, String domain, Boolean throwError) +522 CMS.LicenseProvider.LicenseService.CheckLicense(FeatureEnum feature, String domain, Boolean throwError) +80 CMS.DataEngine.AbstractInfoProvider3.GetObjectQuery(Boolean checkLicense) +357 CMS.OnlineMarketing.ABTestManager.GetRunningABTest(TreeNode page) +49 CMS.OnlineMarketing.CachedABTestManager.GetRunningABTest(TreeNode page) +387 Kentico.OnlineMarketing.Web.Mvc.ABTestVariantSelectionArbiter.SelectVariant(TreeNode page, Boolean& variantAssigned) +87 Kentico.OnlineMarketing.Web.Mvc.ABTestingPageBuilderConfigurationSourceLoader.Load(TreeNode page) +171 Kentico.PageBuilder.Web.Mvc.PageBuilderConfigurationManager.Load(TreeNode page) +74 System.Lazy1.CreateValue() +734 System.Lazy1.LazyInitValue() +189 Kentico.PageBuilder.Web.Mvc.HtmlHelperExtensions.EditableAreaInternal(ExtensionPoint1 instance, IPageBuilderFeature feature, IEditableAreaRenderer renderer, IPageBuilderDataContext dataContext, IComponentDefinitionProvider1 provider, String defaultSectionIdentifier, IEnumerable1 allowedWidgets) +306 Kentico.PageBuilder.Web.Mvc.HtmlHelperExtensions.EditableArea(ExtensionPoint1 instance, String areaIdentifier, String defaultSectionIdentifier, String[] allowedWidgets) +274 ASP._Page_Views_home_Index_cshtml.Execute() in E:\Sendvalu\Kentico\Sendvalu\Views\home\Index.cshtml:27 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148 System.Web.WebPages.StartPage.ExecutePageHierarchy() +86 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +91 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +795 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +795 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +81 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +32 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +73 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +39 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +46 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +73 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158

Recent Answers


Arjan van Hugten answered on March 10, 2020 09:54

Have you enabled AB testing in your Application_Start method or in the ApplicationConfig class? The code that enables AB testing is: 'builder.UseABTesting()'. I think the free license you have doesn't support this.

2 votesVote for this answer Mark as a Correct answer

Edgar Chiroldes answered on March 11, 2020 14:19

Hi Arjan van Hugten, Thanks for your response, I wrote the code 'builder.UseABTesting ()' in ApplicationConfig, but the issue remains unresolved. The free license may not support this functionality as you say, but under the conditions of the free license it does not clarify that this functionality is not available. Another thing is that I don't understand why the editable areas are linked to ABTesting.

0 votesVote for this answer Mark as a Correct answer

Arjan van Hugten answered on March 11, 2020 14:25 (last edited on March 11, 2020 14:26)

You could try removing the code from your ApplicationConfig.cs and test if the issue is resolved. I don't know why the A/B test functionality is linked to the editable area. It could be that it is initialized with the editable area.

As far as I know you have three different licenses: Free, CMS and EMS. For A/B testing the EMS license is required as shown on the documentation page of the A/B feature. https://docs.kentico.com/k12sp/on-line-marketing-features/managing-your-on-line-marketing-features/optimization-testing/a-b-testing-website-pages/creating-a-b-tests-for-pages

1 votesVote for this answer Mark as a Correct answer

Edgar Chiroldes answered on March 11, 2020 14:33

Thanks again for the reply. Without the editable areas, I am not sure, but I believe that the functionality of creating customs widgets to add them to those areas is also lost. Thank you

0 votesVote for this answer Mark as a Correct answer

Arjan van Hugten answered on March 11, 2020 14:40 (last edited on March 11, 2020 14:41)

You don't have to remove the editable area's. You could just remove the 'builder.UseABTesting()' from the ApplicationConfig and check if the editable area works or check if maybe a other exception appears.

1 votesVote for this answer Mark as a Correct answer

Edgar Chiroldes answered on March 11, 2020 14:43

I Remove the builder.UseABTesting () code from ApplicationConfig and also disable AB / Testing functionality in the backend and the editable areas work. Thanks for everything.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.