Base solution for your next web application
Open Closed

Unable to Create Tenant #7842


User avatar
0
CNS created

Hi Support,

I am not able to create a new Tenant thru the Host user and found error like below.

During the code debuggin, I have observed that the roleManager Object in the CreateStaticRoles method in TenantManger.cs file contains all the available DB roles (from other tenants too) which shouldn't be the case for newly created Tenant.

Same kind of issue happening when "Login as Tenant" option is choosed from Host users, it bring all the available users in database while it should bring only the Tenant specific role users.

I have not touched the ASP.NET Zero system generated code for Tenant Managment & not able to figure out whats wrong. Any help would be appreciated.

Thanks!


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

    If you use Zero's Demo project or use a new database, can you reproduce your problem?

    If you can share your project code with me, I can debug it locally. [email protected]

  • User Avatar
    0
    CNS created

    Its not a Demo project. I have another source code (old one) which I have found working with same database.

  • User Avatar
    0
    CNS created

    Hi maliming - I solved it myself. Thanks for your input.