Error

An error occurred while processing your request.

CorrelationId: b29c5074-6924-4a4a-9144-f34cec48119d

Created On: 2022. 01. 22. 23:22:58

Page url: https://pandanutrition.hu//kosar

Short Message: System.InvalidOperationException

Full Message:

<Exception>
  <Frames>
    <Frame>
      <File>C:\Source\NoeCart\Libraries\Services\Public\CartService.cs</File>
      <Method>&lt;GetShoppingCartItems&gt;b__10_7</Method>
      <Line>376</Line>
      <Column>48</Column>
    </Frame>
    <Frame>
      <File>C:\Source\NoeCart\Libraries\Services\Public\CartService.cs</File>
      <Method>MoveNext</Method>
      <Line>376</Line>
      <Column>13</Column>
    </Frame>
    <Frame>
      <File>C:\Source\NoeCart\Presentation\Web\ViewComponents\CartViewComponent.cs</File>
      <Method>MoveNext</Method>
      <Line>281</Line>
      <Column>13</Column>
    </Frame>
    <Frame>
      <File>C:\Source\NoeCart\Presentation\Web\ViewComponents\CartViewComponent.cs</File>
      <Method>MoveNext</Method>
      <Line>1062</Line>
      <Column>13</Column>
    </Frame>
    <Frame>
      <File>C:\Source\NoeCart\Presentation\Web\Themes\Default\Views\Home\Index.cshtml</File>
      <Method>MoveNext</Method>
      <Line>60</Line>
      <Column>16</Column>
    </Frame>
    <Frame>
      <File>C:\Source\NoeCart\Presentation\Web\Infrastucture\ErrorHandling\ErrorHandlerMiddleware.cs</File>
      <Method>MoveNext</Method>
      <Line>28</Line>
      <Column>17</Column>
    </Frame>
  </Frames>
  <Message>Nullable object must have a value.</Message>
  <Stacktrace>   at System.Nullable`1.get_Value()
   at NoeCart.Services.CartService.&lt;&gt;c.&lt;GetShoppingCartItems&gt;b__10_7(ShoppingCartItemModel x) in C:\Source\NoeCart\Libraries\Services\Public\CartService.cs:line 376
   at System.Linq.Enumerable.Sum[TSource](IEnumerable`1 source, Func`2 selector)
   at NoeCart.Services.CartService.GetShoppingCartItems(Int32 storeId, Int32 languageId, UserModel user, ShoppingCart cart) in C:\Source\NoeCart\Libraries\Services\Public\CartService.cs:line 376
   at NoeCart.Web.ViewComponents.CartController.GetCart() in C:\Source\NoeCart\Presentation\Web\ViewComponents\CartViewComponent.cs:line 281
   at NoeCart.Web.ViewComponents.CartController.InvokeAsync(LayoutItemModel model) in C:\Source\NoeCart\Presentation\Web\ViewComponents\CartViewComponent.cs:line 1062
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)
   at AspNetCore.Themes_Default_Views_Home_Index.ExecuteAsync() in C:\Source\NoeCart\Presentation\Web\Themes\Default\Views\Home\Index.cshtml:line 60
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
   at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextResultFilterAsync&gt;g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State&amp; next, Scope&amp; scope, Object&amp; state, Boolean&amp; isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeResultFilters&gt;g__Awaited|27_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextResourceFilter&gt;g__Awaited|24_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&amp; next, Scope&amp; scope, Object&amp; state, Boolean&amp; isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeFilterPipelineAsync&gt;g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeAsync&gt;g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at NoeCart.Web.Infrastructure.ErrorHandlerMiddleware.Invoke(HttpContext context) in C:\Source\NoeCart\Presentation\Web\Infrastucture\ErrorHandling\ErrorHandlerMiddleware.cs:line 28</Stacktrace>
</Exception>

IP Address: 3.87.250.158

töltés

TÖLTÉS