Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create component 'xxxx.Settings.ActivityTypeAppService' as it has dependencies to be satisfied. #6959

Closed
uenlkr4e opened this issue May 27, 2024 · 2 comments

Comments

@uenlkr4e
Copy link

Hi,
i have the latest of everything: .net core 8, abpboilerplate 9.2.2, sql server and using EF core.
I think i did everything by the book but i keep getting the following error:

ERROR 2024-05-26 22:14:14,640 [20 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can't create component 'xxxx.Settings.ActivityTypeAppService' as it has dependencies to be satisfied.
'xxxx.Settings.ActivityTypeAppService' is waiting for the following dependencies:

  • Service 'Abp.Domain.Repositories.IRepository`1[[xxxx.Settings.ActivityType, xxxx.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered._

Build in services work just fine but the newly added ones give this error.
I added the entities in my db context as:
DbSet ActivityTypes { get; set; }

ActivityTypeAppService inherits IActivityTypeAppService which inherits IAsyncCrudAppService.

The rest is the default framework code with all assembly registrations and everything.

Any help would be greatly appreciated.
thanks

@ismcagdas
Copy link
Member

Is it possible to provide a sample project which reproduces this error ?

@uenlkr4e
Copy link
Author

I am sorry for the confusion, just realized that i havent marked the dbset declarations as public.
migrations are created even without the public declaration but seems like dep. injection wont register without public modifier.

closing the issue.
sorry again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants