logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
scott9677  
#1 Posted : Friday, December 2, 2022 8:57:16 PM(UTC)
scott9677

Rank: Advanced Member

Groups: Registered
Joined: 5/18/2018(UTC)
Posts: 40

Thanks: 2 times
I'm trying to push the install of the server to Azure with the latest (6.7.2) install. When I load the script 500 - Publication - Web Report Server, when I go to edit the script, I get an error saying that ILogger needs Microsoft.Extensions.Logging.Abstractions version 2.1.0.0. I've tried manually installing it with Paket with no love. I've tried this on Windows Server 2016 and 2019 and Windows 10.

I've installed .net 6.0 SDK and the Desktop client on them.

Any suggestions?

[img=https://imgur.com/MqdqTWA]Error picture[/img]
epf  
#2 Posted : Saturday, December 3, 2022 8:44:22 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes it looks like the FluentFTP library has moved to a Config object, here is the new code to make it work:
Code:
        //Default FTP configuration for Azure
        client.Config.SslProtocols = SslProtocols.Tls;
        client.Config.ValidateAnyCertificate = true;
        client.Config.DataConnectionType = FtpDataConnectionType.PASV;
        client.Config.DownloadDataType = FtpDataType.Binary;
        client.Config.RetryAttempts = 5;
        client.Config.SocketPollInterval = 1000;
        client.Config.ConnectTimeout = 2000;
        client.Config.ReadTimeout = 2000;
        client.Config.DataConnectionConnectTimeout = 2000;
        client.Config.DataConnectionReadTimeout = 2000;    


Actually just add .Config to client.
Thanks to share your experience with Azure as the 6.7 was not tested for Azure.

Edited by user Saturday, December 3, 2022 8:46:18 AM(UTC)  | Reason: Not specified

scott9677  
#3 Posted : Thursday, December 8, 2022 4:13:31 PM(UTC)
scott9677

Rank: Advanced Member

Groups: Registered
Joined: 5/18/2018(UTC)
Posts: 40

Thanks: 2 times
This block:

//Uncomment and configure to deploy on a FTP Server
FtpClient client = null;
client = new FtpClient("Host Name", "User Name", "Password");
//client = new FtpClient("127.0.0.1", "tester", "password");

Doesn't like the new FtpClient constructor and continues to give an iLogger version 2.1.0.0 error.

epf  
#4 Posted : Friday, December 9, 2022 11:22:04 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes there is a weird error related to dependencies.

You may use the default constructor, it seems working:

Code:
    FtpClient client = new FtpClient(); 
    client.Host = "Host Name";
    client.Credentials.UserName = "User Name";
    client.Credentials.Password = "Password";    
scott9677  
#5 Posted : Tuesday, December 13, 2022 7:23:48 PM(UTC)
scott9677

Rank: Advanced Member

Groups: Registered
Joined: 5/18/2018(UTC)
Posts: 40

Thanks: 2 times
That worked, though I had to turn FTPS off on the Azure side to allow the connection.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.