Thank you for your help. However during the last step when I try to migrate from 3.2.2 to 4.0 I get this error:
Server Error in '/' Application.
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.Reflection.IntrospectionExtensions.GetTypeInfo(Type type) +14175046
System.Data.Entity.Internal.CodeFirstCachedMetadataWorkspace.<Create>b__4(Type t) +9
System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +241
System.Linq.<DistinctIterator>d__64`1.MoveNext() +417
System.Linq.Buffer`1..ctor(IEnumerable`1 source) +498
System.Linq.Enumerable.ToArray(IEnumerable`1 source) +90
System.Data.Entity.Internal.CodeFirstCachedMetadataWorkspace.Create(StorageMappingItemCollection mappingItemCollection, DbProviderInfo providerInfo) +540
System.Data.Entity.Infrastructure.EdmxReader.Read(XmlReader reader, String defaultSchema) +108
System.Data.Entity.Infrastructure.DefaultDbModelStore.LoadXml(Type contextType, Func`2 xmlReaderDelegate) +188
SmartStore.Data.Caching.EfDbModelStore.TryLoad(Type contextType) +164
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +132
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +224
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +896
System.Data.Entity.Internal.InternalContext.Initialize() +26
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +20
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +69
System.Data.Entity.Internal.Linq.InternalSet`1.AsNoTracking() +29
System.Data.Entity.Infrastructure.DbQuery`1.AsNoTracking() +75
SmartStore.Services.Security.AclService.get_HasActiveAcl() +49
SmartStore.Web.Framework.<>c.<Load>b__2_6(IComponentContext c) +96
Autofac.Builder.<>c__DisplayClass0_0`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) +18
Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +50
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) +166
[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) +588
Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +205
Autofac.Core.Resolving.InstanceLookup.Execute() +213
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +224
Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +135
Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +70
Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable`1 parameters) +88
SmartStore.Web.Framework.<>c.<AttachToComponentRegistration>b__3_0(Object sender, ActivatedEventArgs`1 e) +133
Autofac.Core.Resolving.InstanceLookup.Complete() +112
Autofac.Core.Resolving.ResolveOperation.CompleteActivations() +120
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +380
Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +134
Autofac.Features.LazyDependencies.<>c__DisplayClass5_1`1.<CreateLazyRegistration>b__1() +47
System.Lazy`1.CreateValue() +734
System.Lazy`1.LazyInitValue() +189
Autofac.Integration.Mvc.AutofacFilterProvider.ResolveControllerScopedFilter(FilterContext filterContext, String metadataKey, Func`2 wrapperFactory) +461
Autofac.Integration.Mvc.AutofacFilterProvider.ResolveControllerScopedFilters(FilterContext filterContext) +42
Autofac.Integration.Mvc.AutofacFilterProvider.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +313
System.Web.Mvc.FilterProviderCollection.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +169
System.Web.Mvc.ControllerActionInvoker.GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +55
System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +243
System.Web.Mvc.<>c.<BeginExecuteCore>b__152_0(AsyncCallback asyncCallback, Object asyncState, ExecuteCoreState innerState) +48
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +73
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +163
System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state) +787
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +163
System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +630
System.Web.Mvc.<>c.<BeginProcessRequest>b__20_0(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +99
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +73
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +163
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +544
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1128
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134