当前位置:网站首页>. 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
边栏推荐
- 毕业设计游戏商城
- LC 面试题 02.07. 链表相交 & LC142. 环形链表II
- JDBC database connection pool usage problem
- 循环肿瘤细胞——Abnova 解决方案来啦
- 快速定量,Abbkine 蛋白质定量试剂盒BCA法来了!
- Take you to brush (niuke.com) C language hundred questions (the first day)
- .net core 访问不常见的静态文件类型(MIME 类型)
- MySQL (x)
- 剑指offer-高质量的代码
- Can 7-day zero foundation prove HCIA? Huawei certification system learning path sharing
猜你喜欢

Big coffee gathering | nextarch foundation cloud development meetup is coming

反射(二)

Several index utilization of joint index ABC

dolphinscheduler3. X local startup

大促过后,销量与流量兼具,是否真的高枕无忧?

BindingException 异常(报错)处理

如何给目标机器人建模并仿真【数学/控制意义】

MOS管参数μCox得到的一种方法

MySQL view bin log and recover data

Matlab tips (30) nonlinear fitting lsqcurefit
随机推荐
Stack and queue-p79-10 [2014 unified examination real question]
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 can clothing stores make profits?
ip地址那点事
MySQL SQL的完整处理流程
Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données
Matlab tips (30) nonlinear fitting lsqcurefit
impdp的transform参数的测试
unity3d学习笔记
MySQL (x)
「运维有小邓」符合GDPR的合规要求
Learning records on July 4, 2022
品牌电商如何逆势增长?在这里预见未来!
How can gyms improve their competitiveness?
服装门店如何盈利?
Learning notes | data Xiaobai uses dataease to make a large data screen
根据IP获取地市
Jetpack compose is much more than a UI framework~
Mysql---- import and export & View & Index & execution plan
2022/07/04学习记录