HI
after update to version 5.0.2 im logged into the backend and i see the 2 stores and all relevant data but when goiing to the store i get an server error and when i look at the logs its showing error ConcurrentDiction duplicate kkey?
attached is a screen shot of the error log
and the following is the full message as show
System.ArgumentException: The source argument contains duplicate keys.
at System.Collections.Concurrent.ConcurrentDictionary`2.InitializeFromCollection(IEnumerable`1 collection)
at System.Collections.Concurrent.ConcurrentDictionary`2..ctor(Int32 concurrencyLevel, IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Smartstore.Caching.MemorySet..ctor(ICacheStore cache, IEnumerable`1 values) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Caching\MemorySet.cs:line 38
at Smartstore.Caching.MemoryCacheStore.<>c__DisplayClass20_0.<<GetHashSetAsync>b__0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Caching\MemoryCacheStore.cs:line 126
--- End of stack trace from previous location ---
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreateAsync[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Smartstore.Caching.MemoryCacheStore.GetHashSetAsync(String key, Func`1 acquirer) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Caching\MemoryCacheStore.cs:line 122
at Smartstore.Core.Content.Menus.MenuStorage.GetMenuSystemNamesAsync(Boolean ensureCreated) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Content\Menus\Services\MenuStorage.cs:line 108
at Smartstore.Core.Content.Menus.MenuStorage.MenuExistsAsync(String systemName) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Content\Menus\Services\MenuStorage.cs:line 89
at Smartstore.Core.Content.Menus.MenuService.GetMenuAsync(String name) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Content\Menus\Services\MenuService.cs:line 20
at Smartstore.Web.Controllers.CatalogHelper.GetBreadcrumbAsync(IBreadcrumb breadcrumb, ActionContext context, Product product) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Web\Controllers\CatalogHelper.cs:line 469
at Smartstore.Web.Controllers.ProductController.ProductDetails(Int32 productId, ProductVariantQuery query) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Web\Controllers\ProductController.cs:line 195
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Smartstore.Core.Bootstrapping.CheckoutBootstrappingExtensions.<>c.<<UseCheckoutState>b__0_0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Checkout\Bootstrapping\CheckoutBootstrappingExtensions.cs:line 31
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Smartstore.Web.Api.Startup.<>c.<<BuildPipeline>b__3_6>d.MoveNext()
--- End of stack trace from previous location ---
at Smartstore.ExceptionExtensions.ReThrow(Exception exception) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Extensions\ExceptionExtensions.cs:line 15
at Smartstore.Web.Api.Startup.ProcessException(HttpContext context, Exception ex)
at Smartstore.Web.Api.Startup.<>c.<<BuildPipeline>b__3_6>d.MoveNext()
--- End of stack trace from previous location ---
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
at Smartstore.Core.Localization.RequestCultureMiddleware.Invoke(HttpContext context, IWorkContext workContext) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Localization\Services\RequestCultureMiddleware.cs:line 71
at Smartstore.Core.Logging.RequestLoggingMiddleware.InvokeAsync(HttpContext httpContext, IWebHelper webHelper, IWorkContext workContext) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Logging\Serilog\RequestLoggingMiddleware.cs:line 80
at Smartstore.Core.Bootstrapping.CommonBuilderExtensions.<>c.<<UseWorkContext>b__1_0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Common\Bootstrapping\CommonBuilderExtensions.cs:line 36
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Smartstore.Core.Bootstrapping.LocalizationBuilderExtensions.OnAfterRouting(HttpContext context, Func`1 next) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Localization\Bootstrapping\LocalizationBuilderExtensions.cs:line 117
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
at Smartstore.Core.Bootstrapping.LocalizationBuilderExtensions.OnBeforeRouting(HttpContext context, Func`1 next) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Localization\Bootstrapping\LocalizationBuilderExtensions.cs:line 82
at Microsoft.AspNetCore.OData.Batch.ODataBatchMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.OData.Query.ODataQueryRequestMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Smartstore.Core.Bootstrapping.CommonBuilderExtensions.<>c.<<UsePoweredBy>b__2_0>d.MoveNext() in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Core\Platform\Common\Bootstrapping\CommonBuilderExtensions.cs:line 49
--- End of stack trace from previous location ---
at Smartstore.Web.Bundling.BundleMiddleware.InvokeAsync(HttpContext httpContext) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore.Web.Common\Bundling\BundleMiddleware.cs:line 98
at Smartstore.Engine.Initialization.ApplicationInitializerMiddleware.Invoke(HttpContext context) in D:\Git\Smartstore.Full\Smartstore\src\Smartstore\Engine\Initialization\ApplicationInitializerMiddleware.cs:line 77
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)