0
patrickglaudemans created
Hi,
Used the Console App (Acm.PhoneBook) as example to setup access from console classlib to zero implementation (application layer etc.)
Created all the proper instances and bootstrapper. Initializing is running well but after calling: var eventProcessor = bootstrapper.IocManager.Resolve<ReportAppService>(); I get this error:
Can't create component 'Intertek.BI.Reporting.Reports.ReportAppService' as it has dependencies to be satisfied.
'Intertek.BI.Reporting.Reports.ReportAppService' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`1[[Intertek.BI.Entities.Report, Intertek.BI.Core, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Intertek.BI.Entities.SiteOffice, Intertek.BI.Core, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Intertek.BI.Reporting.Core.ReportManager' which was not registered.
- Service 'Intertek.BI.Storage.DbBinaryObjectManager' which was registered but is also waiting for dependencies. 'Intertek.BI.Storage.DbBinaryObjectManager' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`2[[Intertek.BI.Storage.BinaryObject, Intertek.BI.Core, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null],[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Intertek.BI.Entities.DataSource, Intertek.BI.Core, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
- Service 'Abp.Domain.Repositories.IRepository`1[[Intertek.BI.Entities.ReportTableCommand, Intertek.BI.Core, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.
It' seems that DI is not working since registration was not done properly.
1 Answer(s)
-
0
Hold it - I solved it. Obviously it had something to do with dependencies to other libraries in the project. To begin with the data layer ;-)