FubarDevelopment / FtpServer

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

Cannot connect using version 2.2.0 #63

Closed lfalck closed 5 years ago

lfalck commented 5 years ago

Hi!

I can't connect to the FTP server using version 2.2.0, but 2.1.1 works great. Am i doing something wrong? I tried with both WinSCP, FileZilla and the Windows ftp command.

I am using Windows 10 Pro, Version 1809 (OS Build 17763.437). I also tried on Windows Server 2016 Version 1607 (OS Build 14393.2724).

Here is a minimal example. ConsoleAppFtpServer21 works for me but i cannot connect using ConsoleAppFtpServer22.

I also included the logs from WinSCP here and from FileZilla here. They do not say much though.

Love this project by the way, great work! 👍

fubar-coder commented 5 years ago

It looks like an exception occurred on the server side. I currently don't have access to a computer. Maybe you can attach the server log too?

lfalck commented 5 years ago

OK this is weird, when i added logging version 2.2 started working!

Log.Logger = new LoggerConfiguration()
    .MinimumLevel.Verbose()
    .Enrich.FromLogContext()
    .WriteTo.Console()
    .CreateLogger();

var services = new ServiceCollection();

// When i comment out this line, i can't connect again
services.AddLogging(lb => lb.AddSerilog());
fubar-coder commented 5 years ago

Ok, that's definitely a bug.

fubar-coder commented 5 years ago

2.2.1 is published and should be available soon.

lfalck commented 5 years ago

Thanks, now it works!