You have no items in your shopping cart.

Tuesday, June 25, 2019 9:06:43 PM

Error message

Avatar

Posted: 9 months ago

#8446 Quote

admin@prowdit.com

Posted: 9 months ago

#8446 Quote
Customer Tracking:
nopCommerce version: 4.10
Plugin Version: 1.06

I just turned on logging. Below is another exception from the nopcommerce log.
Log level
Error
Short message
The property 'Id' on entity type 'CustomerViewedProductsRec' has a temporary value while attempting to change the entity's state to 'Unchanged'. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property.
Full message
System.InvalidOperationException: The property 'Id' on entity type 'CustomerViewedProductsRec' has a temporary value while attempting to change the entity's state to 'Unchanged'. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property.
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState entityState, Boolean acceptChanges, Nullable`1 forceStateWhenUnknownKey)
   at Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry.set_State(EntityState value)
   at Nop.Data.EfRepository`1.<>c.<GetFullErrorTextAndRollbackEntityChanges>b__3_1(EntityEntry entry) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Data\EfRepository.cs:line 48
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Nop.Data.EfRepository`1.GetFullErrorTextAndRollbackEntityChanges(DbUpdateException exception) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Data\EfRepository.cs:line 43
   at Nop.Data.EfRepository`1.Insert(TEntity entity) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Data\EfRepository.cs:line 86
   at FoxNetSoft.Plugin.Misc.CustomerInterests.Services.CustomerInterestsService.InsertCustomerViewedProductRec(CustomerViewedProductsRec customerViewedProductsRec)
   at FoxNetSoft.Plugin.Misc.CustomerInterests.Controllers.CustomerInterestController.SaveCustomerTracking(Int32 productId)
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 94
   at Nop.Services.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Authentication\AuthenticationMiddleware.cs:line 79
   at FoxNetSoft.Plugin.Misc.Pagespeed.Infrastructure.PageSpeedMiddleware.Invoke(HttpContext context)
   at FoxNetSoft.Plugin.Misc.RedirectManager.Infrastructure.Pag
Avatar

Posted: 9 months ago

#8447 Quote

Support

Posted: 9 months ago

#8447 Quote
I don't know.
I changed the kernel...
I don't know.

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved