Skip to content
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

Error with validateScopes = true using version 3.0rc4 #72

Closed
lfalck opened this issue Jun 24, 2019 · 2 comments
Closed

Error with validateScopes = true using version 3.0rc4 #72

lfalck opened this issue Jun 24, 2019 · 2 comments
Assignees
Labels

Comments

@lfalck
Copy link

lfalck commented Jun 24, 2019

Hi!

When i build the service provider with validation of scopes like this:
services.BuildServiceProvider(validateScopes: true)

I get this error:
Cannot resolve scoped service 'FubarDev.FtpServer.Commands.IFtpCommandHandlerProvider' from root provider.

ValidateScopes is also true when using CreateDefaultBuilder in ASP.NET Core which is where i encountered the issue.

Here is a minimal example of the issue, if i remove validateScopes i can connect but with it the application crashes.

Great work with 3.0, looking foward to the release!

/Ludvig

@fubar-coder fubar-coder self-assigned this Jun 25, 2019
fubar-coder added a commit that referenced this issue Jun 26, 2019
@fubar-coder
Copy link
Contributor

Fixed in RC5 (should be available soon)

@lfalck
Copy link
Author

lfalck commented Jun 26, 2019

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants