Thanks that did the trick
When starting de default aspnetzero template in Google Chrome I get an error message Tenant id 2 does not exist. The Tenant id indeed does not exist. But when starting the template with Mcrosoft Edge or Internet Explorer no error will occur, because the Tenant id is 1. Why does the AbpSession give the wrong id? Error occus in the LayoutController
[ChildActionOnly]
public PartialViewResult Header(string currentPageName = "")
{
var headerModel = new HeaderViewModel();
if (AbpSession.UserId.HasValue)
{
headerModel.LoginInformations = AsyncHelper.RunSync(() => _sessionAppService.GetCurrentLoginInformations());
}
headerModel.Languages = LocalizationManager.GetAllLanguages();
headerModel.CurrentLanguage = LocalizationManager.CurrentLanguage;
headerModel.Menu = AsyncHelper.RunSync(() => _userNavigationManager.GetMenuAsync(FrontEndNavigationProvider.MenuName, AbpSession.UserId));
headerModel.CurrentPageName = currentPageName;
headerModel.IsMultiTenancyEnabled = _multiTenancyConfig.IsEnabled;
return PartialView("~/Views/Layout/_Header.cshtml", headerModel);
}