Skip to content

Error with validateScopes = true using version 3.0rc4 #72

@lfalck

Description

@lfalck

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions