FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
473 stars 161 forks source link

Error with validateScopes = true using version 3.0rc4 #72

Closed lfalck closed 5 years ago

lfalck commented 5 years ago

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 commented 5 years ago

Fixed in RC5 (should be available soon)

lfalck commented 5 years ago

Great, thanks!