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
Service that was registered in application layer not injecting in Blazor class #19638
Comments
hi You need to add https://docs.abp.io/en/abp/latest/UI/Blazor/Overall#dynamic-c-client-proxies |
Oh I understand what is the reason of the problem, thanks a lot. So I just need to inherit my |
hello my dear bro,I have the same problem too,but it’s unuseful afterl I do the same step liek you that inheriting my IXXXService from IRemoteService,do you know why? Or I misunderstand your opeartion?Could you please tell me how you resolve this problem? |
Hello, @yuannisha. Can you explain please - what error you are getting? |
An exception was thrown while activating Wz.ReservingSystem.CustomUserAppservice.CustomUserAppservices. |
it appears when I use the API for my application service |
So ABP cannot resolve |
I don't think the issue lies with using SignInManager, but rather with the error message: Autofac.Core.DependencyResolutionException: None of the constructors found on type 'Wz.ReservingSystem.CustomUserAppservice.CustomUserAppservices' can be invoked with the available services and parameters. I am using abp version 8.1, and this problem occurs after I finish the application service and expose it as an API. Whenever I use the API, this error occurs. It seems to be related to automatic dependency injection. I never encountered these issues when using older versions of abp, but after using versions 7 and above, this problem keeps happening. I am unsure how to resolve this. |
The accurate description is as follows: I have not modified the framework source code. I have simply added entities, mapping tables, service interfaces, implemented service interfaces, and exposed the services as APIs. After completing these steps, I began testing my API. However, when making API requests, I encountered this issue. Do you know what might be causing this problem? Could you please help me resolve this issue? I am a bit anxious to fix this problem. Thank you very much! |
Can you please try to remove |
Oh thanks you a lot,it seems like being resolved with your suggestion,thanks! |
Is there an existing issue for this?
Description
I have interface
IStasticsRecalculator
defined in toApplication.Contracts
project and its implementation -StasticsRecalculator
inApplication
project. In module class ofApplication
project I register it like this:After that I inject
IStasticsRecalculator
into class in Blazor project and get this error:Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
8.0.1
User Interface
Blazor
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: