Base solution for your next web application
Open Closed

Cannot add tenant from console application #1838


User avatar
0
rickwheeler created

Hi,

I'm trying to write some code to create a new tenant from a console application.

  • Download ASP.NET Zero template
  • Add a new console application to the solution
  • Make it a module just like the Migrator tool using the same code for bootstrapper etc
  • Call TenantManager.CreateWithAdminUserAsync

When I do this, I receive the error "There is no permission with name: Pages.Tenants"

I have both data and core modules added as dependencies to my console application module. Are you able to replicate this problem?

Any help appreciated.

Cheers, Sean


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Permission names are defined in core module but added in app module. So you need to depend on app module.