Inhalte aufrufen

Profilbild

Upgrade to 4.2.0 failed


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
Keine Antworten zum Thema vorhanden

#1 mihai8822m

mihai8822m

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 35 Beiträge

Geschrieben: 04 February 2022 - 12:53

Hello,

 

I started upgrading from 3.1.5 and at version 4.0 I get this error

 

Any tips on what I did wrong or how I can fix:

 

[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Reflection.IntrospectionExtensions.GetTypeInfo(Type type) +12809657
System.Data.Entity.Internal.CodeFirstCachedMetadataWorkspace.<Create>b__4(Type t) +7
System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +164
System.Linq.<DistinctIterator>d__64`1.MoveNext() +267
System.Linq.Buffer`1..ctor(IEnumerable`1 source) +367
System.Linq.Enumerable.ToArray(IEnumerable`1 source) +76
System.Data.Entity.Internal.CodeFirstCachedMetadataWorkspace.Create(StorageMappingItemCollection mappingItemCollection, DbProviderInfo providerInfo) +349
System.Data.Entity.Infrastructure.EdmxReader.Read(XmlReader reader, String defaultSchema) +79
System.Data.Entity.Infrastructure.<>c__DisplayClass1.<TryLoad>b__0(XmlReader reader) +31
System.Data.Entity.Infrastructure.DefaultDbModelStore.LoadXml(Type contextType, Func`2 xmlReaderDelegate) +134
System.Data.Entity.Infrastructure.DefaultDbModelStore.TryLoad(Type contextType) +84
SmartStore.Data.Caching.EfDbModelStore.TryLoad(Type contextType) +216
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +95
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +123
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +627
System.Data.Entity.Internal.InternalContext.Initialize() +20
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +16
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +53
System.Data.Entity.Internal.Linq.InternalSet`1.AsNoTracking() +18
System.Data.Entity.Infrastructure.DbQuery`1.AsNoTracking() +46
SmartStore.Data.EfRepository`1.get_TableUntracked() +18
SmartStore.Services.Security.AclService.get_HasActiveAcl() +31
SmartStore.Web.Framework.<>c.<Load>b__2_6(IComponentContext c) +53
Autofac.<>c__DisplayClass5_0`1.<Register>b__0(IComponentContext c, IEnumerable`1 p) +10
Autofac.Builder.<>c__DisplayClass0_0`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) +14
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +43
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) +103

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DbQuerySettings (DelegateActivator), Services = [SmartStore.Core.Data.DbQuerySettings], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Value cannot be null.
Parameter name: type (See inner exception for details.)]
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) +253
Autofac.Core.Resolving.<>c__DisplayClass5_0.<Execute>b__0() +18
Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +206
Autofac.Core.Resolving.InstanceLookup.Execute() +145
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +176
Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +24
Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +74
Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +54
Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable`1 parameters) +102
SmartStore.Web.Framework.<>c.<AttachToComponentRegistration>b__3_0(Object sender, ActivatedEventArgs`1 e) +83
Autofac.Core.Registration.ComponentRegistration.RaiseActivated(IComponentContext context, IEnumerable`1 parameters, Object instance) +70
Autofac.Core.Resolving.InstanceLookup.Complete() +77
Autofac.Core.Resolving.ResolveOperation.CompleteActivations() +90
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +252
Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +69
Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +116
Autofac.Features.LazyDependencies.<>c__DisplayClass5_1`1.<CreateLazyRegistration>b__1() +23
System.Lazy`1.CreateValue() +411
System.Lazy`1.LazyInitValue() +152
System.Lazy`1.get_Value() +75
Autofac.Integration.Mvc.AutofacFilterProvider.ResolveControllerScopedFilter(FilterContext filterContext, String metadataKey, Func`2 wrapperFactory) +376
Autofac.Integration.Mvc.AutofacFilterProvider.ResolveControllerScopedFilters(FilterContext filterContext) +26
Autofac.Integration.Mvc.AutofacFilterProvider.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +298
System.Web.Mvc.FilterProviderCollection.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +132
System.Web.Mvc.ControllerActionInvoker.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +37
System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +193
System.Web.Mvc.<>c.<BeginExecuteCore>b__152_0(AsyncCallback asyncCallback, Object asyncState, ExecuteCoreState innerState) +27
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +30
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state) +494
System.Web.Mvc.<>c.<BeginExecute>b__151_1(AsyncCallback asyncCallback, Object callbackState, Controller controller) +16
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +20
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +403
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +16
System.Web.Mvc.<>c.<BeginProcessRequest>b__20_0(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +54
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +30
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +427
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +444
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163