Inhalte aufrufen

Profilbild

SmartStore.SmartException: 'Guests' role could not be loaded

ef database migrations smartsorenet

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 kdenisinfo

kdenisinfo

    Member

  • Members
  • PunktPunkt
  • 19 Beiträge

Geschrieben: 30 September 2019 - 11:27

Hi, 

After I had added few new entitties into EDMX designer I expirience this exception  

SmartStore.SmartException: 'Guests' role could not be loaded

Second question is anywhere any kind of docs available in place to solve following things

1. how to add new entities to solution's DB ?
2. how to add the domain model into the Solution 

Is it model first miogrations ? why in this case the modeller 
SmartStore.Data.SmartObjectContext.edmx file is excluded from the project smartstore.web. ? 

Really appreciate ASAP response, mission critical  



#2 kdenisinfo

kdenisinfo

    Member

  • Members
  • PunktPunkt
  • 19 Beiträge

Geschrieben: 30 September 2019 - 12:05

SmartStore.Services.Customers.CustomerService.InsertGuestCustomer(Nullable`1 customerGuid) in D:\Dev\HMZ\RC3\BUILDS\SmartStoreNet-3.2.2\src\Libraries\SmartStore.Services\Customers\CustomerService.cs:402
SmartStore.Web.Framework.WebWorkContext.GetGuestCustomer() in D:\Dev\HMZ\RC3\BUILDS\SmartStoreNet-3.2.2\src\Presentation\SmartStore.Web.Framework\WebWorkContext.cs:184
SmartStore.Web.Framework.WebWorkContext.get_CurrentCustomer() in D:\Dev\HMZ\RC3\BUILDS\SmartStoreNet-3.2.2\src\Presentation\SmartStore.Web.Framework\WebWorkContext.cs:112
SmartStore.Web.Framework.Localization.SetWorkingCultureAttribute.OnAuthorization(AuthorizationContext filterContext) in D:\Dev\HMZ\RC3\BUILDS\SmartStoreNet-3.2.2\src\Presentation\SmartStore.Web.Framework\Localization\SetWorkingCultureAttribute.cs:38
System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +97
System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__0(AsyncCallback asyncCallback, Object asyncState) +640
System.Web.Mvc.Async.WrappedAsyncResult`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +14
System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +346
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() +443
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



#3 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 01 October 2019 - 18:44

We never tested with the EDMX designer, therefore we do not support it officially. Use Code First approach please.


Murat Cakir
SmartStore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: ef, database, migrations, smartsorenet