Open Closed

Given tenant is not available #712


User avatar
0
Mohammad created
Volo.Abp.UserFriendlyException: Given tenant is not available: Test
   at Pages.Abp.MultiTenancy.TenantSwitchModalModel.OnPostAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
2020-12-20 12:40:39.463 +03:00 [WRN] Code:
2020-12-20 12:40:39.463 +03:00 [WRN] Details:
2020-12-20 12:40:39.472 +03:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
2020-12-20 12:40:39.486 +03:00 [INF] Executed page /Abp/MultiTenancy/TenantSwitchModal in 76.4778ms
2020-12-20 12:40:39.487 +03:00 [INF] Executed endpoint '/Abp/MultiTenancy/TenantSwitchModal'
2020-12-20 12:40:39.503 +03:00 [DBG] Added 0 entity changes to the current audit log
2020-12-20 12:40:39.503 +03:00 [DBG] Added 0 entity changes to the current audit log
2020-12-20 12:40:39.505 +03:00 [INF] Request finished in 111.5151ms 403 application/json; charset=utf-8
2020-12-20 12:40:44.239 +03:00 [INF] Request starting HTTP/2.0 POST https://localhost:44374/Abp/MultiTenancy/TenantSwitchModal application/x-www-form-urlencoded; charset=UTF-8 197
2020-12-20 12:40:44.240 +03:00 [INF] CORS policy execution failed.
2020-12-20 12:40:44.240 +03:00 [INF] Request origin https://localhost:44374 does not have permission to access the resource.
2020-12-20 12:40:44.242 +03:00 [INF] No CORS policy found for the specified request.
2020-12-20 12:40:44.244 +03:00 [INF] Executing endpoint '/Abp/MultiTenancy/TenantSwitchModal'
2020-12-20 12:40:44.246 +03:00 [INF] Route matched with {page = "/Abp/MultiTenancy/TenantSwitchModal", area = "", action = "", controller = ""}. Executing page /Abp/MultiTenancy/TenantSwitchModal
2020-12-20 12:40:44.247 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy
2020-12-20 12:40:44.249 +03:00 [INF] Executing handler method Pages.Abp.MultiTenancy.TenantSwitchModalModel.OnPostAsync - ModelState is "Valid"

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.3.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

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

    hi @Mohammad

    How to repro your problem?

  • User Avatar
    0
    arjun created

    It could be a cookie issue since you might had another app running on same port earlier with your last login to a tenant, and now it does not exist. Please clear cookie and try again.

  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    Yes, @arjun

    @Mohammad You can try it in browser Incognito mode.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11