Posted:
Tuesday, April 13, 2021 11:09 AM
Total Posts:
5
ArgumentNullException: Value cannot be null. (Parameter 'collection') MongoDB.Driver.Core.Misc.Ensure.IsNotNull<T>(T value, string paramName) MongoDB.Driver.IMongoCollectionExtensions.AsQueryable<TDocument>(IMongoCollection<TDocument> collection, AggregateOptions aggregateOptions) Grand.Domain.Data.Repository<T>.get_Table() in Repository.cs + get { return _collection.AsQueryable(); } Grand.Services.Seo.UrlRecordService.GetBySlug(string slug) in UrlRecordService.cs + var query = from ur in _urlRecordRepository.Table Grand.Services.Seo.UrlRecordService+<>c__DisplayClass16_0+<<GetBySlugCached>b__2>d.MoveNext() in UrlRecordService.cs + var urlRecord = await GetBySlug(slug); Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreateAsync<TItem>(IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory) Grand.Core.Caching.MemoryCacheManager.GetAsync<T>(string key, Func<Task<T>> acquire) in MemoryCacheManager.cs + return await _cache.GetOrCreateAsync(key, entry => Grand.Services.Seo.UrlRecordService.GetBySlugCached(string slug) in UrlRecordService.cs + return await _cacheManager.GetAsync(key, async () => Grand.Framework.Mvc.Routing.SlugRouteTransformer.TransformAsync(HttpContext context, RouteValueDictionary values) in SlugRouteTransformer.cs + var urlRecord = await _urlRecordService.GetBySlugCached(slug.ToString()); System.Threading.Tasks.ValueTask<TResult>.get_Result() System.Runtime.CompilerServices.ValueTaskAwaiter<TResult>.GetResult() Microsoft.AspNetCore.Mvc.Routing.DynamicControllerEndpointMatcherPolicy.ApplyAsync(HttpContext httpContext, CandidateSet candidates) Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet) Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask) Grand.Framework.Middleware.PoweredByMiddleware.InvokeAsync(HttpContext context, IPoweredByMiddlewareOptions options) in PoweredByMiddleware.cs + await _next.Invoke(context); Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) Grand.Framework.Middleware.InstallUrlMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper) in InstallUrlMiddleware.cs + await _next(context); Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi) Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)