Closed moustaphastar closed 5 years ago
Did you follow the ASP NET Core integration guidance? I'm missing the call to AutoCrossWireAspNetComponents
from your configuration.
I red the Simple Injector ASP NET Core MVC Integration Guide and found that i was missing AutoCrossWireAspNetComponents
part in my configuration as you pointed out. I changed my configuration in Startup.cs file by inserting following lines and it works now:
services.EnableSimpleInjectorCrossWiring(container);
before services.UseSimpleInjectorAspNetRequestScoping(container);
container.AutoCrossWireAspNetComponents(app);
before container.Verify();
Thank you very much indeed.
While using simple injector on an asp net core 3 react template application ( asp .net core 3 + entity framework 3 + react ), i have trouble with registering IClientRequestParametersProvider type and get the following error:
Here is the controller class:
And my Startup.cs file with simple injector configuration: