Base solution for your next web application
Open Closed

IRepository dependency error calling domain service from dll #3826


User avatar
0
amrsaafan created

Hello,

We have built a module like "sample blog module" we have installed Core, and FrameworkCore to a new project in the ".Application project"

we added depend on to the appicationModule for both dlls (CoreModule, and FrameworkCoreModule ) when calling a domain service in the core dll in one of the app services it gives this exception message "Can't create component '.Registration.SignupAppService' as it has dependencies to be satisfied.\r\n\r\n'.Registration.SignupAppService' is waiting for the following dependencies:\r\n- Service '.SubscriptionDomainService' which was registered but is also waiting for dependencies.\r\n'.SubscriptionDomainService' is waiting for the following dependencies:\r\n- Service 'Abp.Domain.Repositories.IRepository2[[.Subscription, .Core, Version=1.0.1709.701, Culture=neutral, PublicKeyToken=null],[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' which was not registered.\r\n- Service 'Abp.Domain.Repositories.IRepository2[[.Customer, .Core, Version=1.0.1709.701, Culture=neutral, PublicKeyToken=null],[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' which was not registered.\r\n- Service 'Abp.Domain.Repositories.IRepository`2[[.Invoice, .Core, Version=1.0.1709.701, Culture=neutral, PublicKeyToken=null],[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' which was not registered.\r\n- Service '.IPlanConfiguration' which was not registered."


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

    Hi @amrsaafan,

    Have you added your Subscription entity to your DbContext ? Sometimes it can be forgotten. If you did, can you share your related module classes ?

    Thanks.