Open Closed

ICustomTenantRepository has not been registered #3163


User avatar
0
Talal created

I started with MVC-Tiered Solution

Worked then followed: https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host

I am getting:

The requested service 'TestProj.TenantManagement.ICustomTenantRepository' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency..

I can not find a solution anywhere

Please help.


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

    Hi,

    Can you share a project? shiwei.liang@volosoft.com

  • User Avatar
    0
    Talal created

    i shared the solution with you (GDrive)

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You are using the wrong module.

    We created a saas module for commercial, It is a premium version of the tenant module.

    1. Remove all Volo.Abp.TenantManagement.* packages.
    2. Replace TenantManagementDbContext with SaasDbContext
    3. Replace ConfigureTenantManagement with ConfigureSaas
    4. Update namespace using.
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10