Open siddhant4u opened 7 years ago
HttpContext.Current is always null in below line. Not sure if that's causing the issue in next one for HttpContextBase registration
idSvrFactory.Register(new Registration<HttpContext>(resolver => HttpContext.Current));
Don't know. Sorry.
I'm trying to combine Asp.net Identity along with MVC View Service. So far I'm able to work on individual configuration based on Samples from github i.e. my identityserver3 works using my existing asp.net identity database Or I can configure view service using MVC ViewService example but when I try to combine both It doesn't work. I get -
Unhandled exception accessing: /core/connect/authorize Autofac.Core.DependencyResolutionException: A delegate registered to create instances of 'System.Object' returned null.
at line
idSvrFactory.Register(new Registration<HttpContextBase>(resolver => new HttpContextWrapper(resolver.Resolve<HttpContext>())));
my identityserver3 settings are -
ConfigureEPMSerivce code is -
I tried google'ing so far no help from stackoverflow either
https://stackoverflow.com/questions/46339639/identityserver3-mvc-service-view-with-aspidentity-a-delegate-registered-to
I'm not using autofac in my project.
Relevant parts of the log file