Error(s) trying to inject Appservice into Blazor page. #12115
-
I realise this is something I have missed or failed to do, but I can't work it out. I have 2 modules called Common, and ClubManagement) I am trying to inject a lookupAppService from the Common Module into the blazor (code behind) form, to populate a drop down with values out of the 'common' module. If I try the method of:
I get this error:
I have also tried '[Inject] protected ILookupAppService {get; set;}' and I get the below unregistered service error:
I have a second AppService that I have injected the same way and it works, but it is defined in the same module (ClubManagement), so I can only guess that I have failed to do a step to get the cross module AppService(s) working, but I have no idea where or what I have missed. Thank you in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Can you provide a project to reproduce? |
Beta Was this translation helpful? Give feedback.
-
In trying to create a small project to share with the problem replicated, I Discovered what I had done wrong. I had missed a reference to one of the modules in a DependsOn[] section... (well I had referenced the wrong one) Thanks for the help anyway. |
Beta Was this translation helpful? Give feedback.
In trying to create a small project to share with the problem replicated, I Discovered what I had done wrong.
I had missed a reference to one of the modules in a DependsOn[] section... (well I had referenced the wrong one)
Thanks for the help anyway.