Try our conversational search powered by Generative AI!

upgrade problem with editmode

Vote:
 

After upgrading a legacy webforms project from episerver 6 r2 to episerver cms 7 and then 7.5 (patch 20) I get nullreference exception when trying to load edit mode. E.g. the edit mode loads, but the Page tree doee not, and forms editing is not working either. 

Any clues /help is appreciated!

Console / network gives 2 xhr error request to:

Open up the URL request gives: 

NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Shell.ObjectEditing.MetadataHandlerRegistry.GetModelAccessor(Type type, Dictionary`2 arguments) +15
   EPiServer.Shell.UI.Rest.MetadataStore.GetModelAccessor(String modelAccessorParam, Type t) +101
   EPiServer.Shell.UI.Rest.MetadataStore.Get(String id, String modelAccessor) +72
   lambda_method(Closure , ControllerBase , Object[] ) +147
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +211
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() +55
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
   EPiServer.Shell.Services.Rest.RestControllerBase.ExecuteCore() +175
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContextBase httpContext) +197
   EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContext context) +42
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
#87789
Jun 23, 2014 15:53
Vote:
 

I am also experiencing this problem. Did you find a solution Per?

#91604
Oct 09, 2014 12:13
Vote:
 

Hey, 

Not quite correctly. I took a vanilla episerver cms 7.5 web.config and used it, added the parts that I knew I needed step by step. 

The root cause is still unknown.

#111742
Oct 20, 2014 14:06
Vote:
 

I fixed this by cleaning up my own web.config. As soon as I removed the episerver.dataStore configsection, everything works. The config that was removed was the following

<episerver.dataStore>
    <dataStore defaultProvider="EPiServerSQLServerDataStoreProvider" autoResolveTypes="false">
      <providers>
        <clear />
        <add name="EPiServerSQLServerDataStoreProvider" description="SQL Server implementation of Data Store" type="EPiServer.Data.Dynamic.Providers.SqlServerDataStoreProvider, EPiServer.Data" />
      </providers>
      <cache defaultProvider="httpCacheProvider">
        <providers>
          <clear />
          <add name="httpCacheProvider" description="Http Cache implementation for DataStore" type="EPiServer.Data.Cache.HttpRuntimeCacheProvider,EPiServer.Data.Cache" />
          <add name="nullCacheProvider" description="Null Cache implementation for DataStore" type="EPiServer.Data.Cache.NullCacheProvider,EPiServer.Data" />
        </providers>
      </cache>
    </dataStore>
  </episerver.dataStore>

as well as the declaring configsection in the top of web.config.

As we are not using dynamic data store in our EPiServer site, removing this has no side effects.

Thanks for your tip, Per.

#111761
Oct 21, 2014 9:21
* 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.