Base solution for your next web application
Open Closed

GetPaymentHistory fails when trying to access subscriptions from Host #8691


User avatar
0
smry created

this line fails:

var payments = await query.OrderBy(input.Sorting).PageBy(input).ToListAsync(); 

Error on query:

Session.TenantId is null! Possible problems: No user logged in or current logged in user in a host user (TenantId is always null for host users).

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi smry

    • What is your product version?
    • What is your product type (Angular or MVC)?
    • What is product framework type (.net framework or .net core)?

    Can you share the steps to reproduce the problem? Thanks.

  • User Avatar
    0
    smry created

    What is your product version? 8.3.1 manually converted over from 8.1

    What is your product type (Angular or MVC)? Angular

    What is product framework type (.net framework or .net core)? Core

    Can you share the steps to reproduce the problem Log onto host -> Administration Tab -> Subscription:

  • User Avatar
    1
    maliming created
    Support Team

    Please follow: https://github.com/aspnetzero/aspnet-zero-core/issues/3090