question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create New Tenant Error (URGENT Please!!)

See original GitHub issue

Hello guys! I have a serious problem here. So upgrade from version 2.3 to version 3.5 I can no longer create a new Tenant !!!

In the code of the Tenant build method, when you arrow the tenant to the new using (CurrentUnitOfWork.SetTenantId (tenant.Id))

when trying to create the StaticRoles throws an exception informing that the user with ID 1 does not exist.

I imagine that somewhere is applying the permission check to create Roles … and is trying to verify if my user is allowed … Only my user is from Host … and I am creating the Tenant yet …

This is the exception text:

Abp.AbpException: There is no user with id: 1 at Abp.Authorization.Users.AbpUserManager2.<GetUserByIdAsync>d__46.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.ZeroCore\Authorization\Users\AbpUserManager.cs:line 329 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.Users.AbpUserManager2.<IsGrantedAsync>d__34.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.Users.AbpUserManager2.<IsGrantedAsync>d__33.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.ZeroCore\Authorization\Users\AbpUserManager.cs:line 129 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.PermissionChecker2.<IsGrantedAsync>d__19.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.ZeroCore\Authorization\PermissionChecker.cs:line 48 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.PermissionChecker`2.<IsGrantedAsync>d__18.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.ZeroCore\Authorization\PermissionChecker.cs:line 43 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.Compiler…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fabio-basedevcommented, Jul 17, 2018

It looks like the AsyncCrudAppService class has something missing for me … Implemented it and it all worked again …

Thanks for your help @ryancyq!!

0reactions
fabio-basedevcommented, Jul 17, 2018

Does the fact that my TenantAppService class is not inheriting from the AsyncCrudAppService class? As my project was older … I had not inherited from this class and the methods were encoded when I downloaded the template … Is changing this can have some power in the AsyncCrudAppService class that bypass this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create one new tenant - Microsoft Q&A
When create one tenant at "Azure Active Directory", it reports "Tenant creation failed. Access is denied." I'm the owner of my subscription, ...
Read more >
Error creating a new tenant
This error may occur when a tenant name is reused, even if the previous tenant with the same name was deleted. Let me...
Read more >
Azure AD authentication troubleshooting: Known problems ...
The first error strongly indicates there is cached detritus from a prior installation–Office is trying to connect to a OneDrive in another ...
Read more >
Consumer Guide to Tenant and Landlord Rights
We hope that the Guide informs you about what to look for when applying to rent and reviewing a lease, what to expect...
Read more >
LANDLORD/TENANT BASICS
In this case, a warehouseman's lien is created against the mobilehome for the costs of dismantling and moving, if appropriate, as well as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found