Seal Report Forum
»
Troubleshooting
»
Installation
»
ILogger Error when trying to push to Azure
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]
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 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
|
|
|
|
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.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 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";
|
|
|
|
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.
|
|
|
|
Seal Report Forum
»
Troubleshooting
»
Installation
»
ILogger Error when trying to push to Azure
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.