GithubHelp home page GithubHelp logo

Unable to run is4admin template: Cannot resolve scoped service 'IdentityExpress.Manager.BusinessLogic.Interfaces.Services.ILicenseService' from root provider. about identityserver4.templates HOT 11 CLOSED

nathan-hitchman avatar nathan-hitchman commented on August 20, 2024
Unable to run is4admin template: Cannot resolve scoped service 'IdentityExpress.Manager.BusinessLogic.Interfaces.Services.ILicenseService' from root provider.

from identityserver4.templates.

Comments (11)

leastprivilege avatar leastprivilege commented on August 20, 2024 1

Update nuget pushed.

Thanks for reporting!

from identityserver4.templates.

leastprivilege avatar leastprivilege commented on August 20, 2024

pinging @scottbrady91

from identityserver4.templates.

brockallen avatar brockallen commented on August 20, 2024

any update?

from identityserver4.templates.

piyey avatar piyey commented on August 20, 2024

I had to use this in my Program Class in WebHost (IWebHostBuilder)

UseDefaultServiceProvider(opt => opt.ValidateScopes = false)

from identityserver4.templates.

leastprivilege avatar leastprivilege commented on August 20, 2024

That's weird - let's ping @scottbrady91 again...

from identityserver4.templates.

scottbrady91 avatar scottbrady91 commented on August 20, 2024

Yeah, I'm getting the same error. How has this broken when there have been no code changes?

from identityserver4.templates.

leastprivilege avatar leastprivilege commented on August 20, 2024

Is that on 2.1 ?

https://stackoverflow.com/questions/50222688/di-exception-for-indentityserver4-after-install-core-2-1-sdk

Seems MS has turned on DI validation by default now. There is a hidden bug in the AdminUI DI setup I guess.

from identityserver4.templates.

scottbrady91 avatar scottbrady91 commented on August 20, 2024

Yeah, I didn't manually install 2.1. Thanks, Visual Studio!

from identityserver4.templates.

leastprivilege avatar leastprivilege commented on August 20, 2024

@richardblewett Rich, there seems to be a bug in how you setup DI. This error typically means you are resolving a scoped dependency somewhere while not being in a scoped context. This turns your dependency into a singleton.

It seems that starting with 2.1 MS turns on validation by default - hence the exception. Could you please fix and version the nuget, so we can create new templates.

from identityserver4.templates.

richardblewett avatar richardblewett commented on August 20, 2024

Pull request submitted that resolves issue

from identityserver4.templates.

nathan-hitchman avatar nathan-hitchman commented on August 20, 2024

Thanks all.

from identityserver4.templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.