当前位置:网站首页>. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
2022-07-07 07:00:00 【Pingshan CP3】
background : Used in the test environment FluentFTP Connect FTP That's all right. , There is no connection to the customer
Problem analysis :
1. Look at the error message , It's certification , Checked FTP The account and password are ok
2. Check the customer FTP Server, yes Sery-U Built , It is possible to connect with the client
3. That's the procedural problem , The suspicion is FluentFTP problem , But view FluentFTP, Yes, it supports connection Serv-U Of ; Because I don't want to change too many things in the program , So I started to analyze FluentFTP Use of
4. Check the initialization FTPClient Method , After trying to replace , Invalid ; It is found that the connection is used AutoConnect, It feels like this is bad Auto Yes
to glance at AutoConnect effect :

This makes up a little knowledge ,FTPS Is in FTP On the basis of TLS and SSL The certification , But and based on SSH Of FTP It's different ( namely SFTP). that AutoConnect It should be automatic recognition FTP still FTPS, Then connect . Here it should be considered FTPS, And then connect , At the same time, our connection information is missing for FTPS Credentials for connection authentication , Lead to failure ;
solve : take AutoConnect Change it to Connect Just fine ;
Yan Shen :
Decompile and check AutoConnect Source code :

He is getting multiple FtpProfile, And take the first one to connect ;
see AutoDetect In the method , There is obviously a lot about SSL The operation of , But I'm not sure which operation caused this error
summary : about AutoConnect and Connect Still use it cautiously
边栏推荐
- Performance comparison between Ceres solver and g2o
- Postgresql源码(59)分析事务ID分配、溢出判断方法
- [GNN] graphic gnn:a gender Introduction (including video)
- 请教一下,监听pgsql ,怎样可以监听多个schema和table
- Leetcode T1165: 日志分析
- From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
- 健身房如何提高竞争力?
- Initial experience of addresssanitizer Technology
- POI export to excel: set font, color, row height adaptation, column width adaptation, lock cells, merge cells
- 二十岁的我4面拿到字节跳动offer,至今不敢相信
猜你喜欢

SolidWorks GB Library (steel profile library, including aluminum profile, aluminum tube and other structures) installation and use tutorial (generating aluminum profile as an example)

关于数据库数据转移的问题,求各位解答下

Abnova 体外转录 mRNA工作流程和加帽方法介绍

快速定量,Abbkine 蛋白质定量试剂盒BCA法来了!
![Stack and queue-p78-8 [2011 unified examination true question]](/img/df/72ba22f1953551943494d661a56a3b.jpg)
Stack and queue-p78-8 [2011 unified examination true question]

Jetpack compose is much more than a UI framework~

反射(二)

途家、木鸟、美团……民宿暑期战事将起

Learning notes | data Xiaobai uses dataease to make a large data screen

ip地址那点事
随机推荐
SolidWorks的GB库(钢型材库,包括铝型材、铝管等结构)安装及使用教程(生成铝型材为例)
unity3d学习笔记
FPGA课程:JESD204B的应用场景(干货分享)
Initial experience of addresssanitizer Technology
How to do sports training in venues?
Jmeter 5.5版本发布说明
MATLAB小技巧(29)多项式拟合 plotfit
【mysqld】Can't create/write to file
Pinduoduo lost the lawsuit: "bargain for free" infringed the right to know but did not constitute fraud, and was sentenced to pay 400 yuan
How Oracle backs up indexes
leetcode 509. Fibonacci Number(斐波那契数字)
mysql查看bin log 并恢复数据
Several index utilization of joint index ABC
剑指offer-高质量的代码
[GNN] graphic gnn:a gender Introduction (including video)
ViewModelProvider.of 过时方法解决
Libcurl returns curlcode description
MySQL的主从复制原理
BindingException 异常(报错)处理
mobx 知识点集合案例(快速入门)