当前位置:网站首页>. 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
边栏推荐
- From zero to one, I will teach you to build the "clip search by text" search service (2): 5 minutes to realize the prototype
- 「运维有小邓」符合GDPR的合规要求
- Abnova 体外转录 mRNA工作流程和加帽方法介绍
- Abnova循环肿瘤DNA丨全血分离,基因组DNA萃取分析
- ip地址那点事
- Prompt for channel security on the super-v / device defender side when installing vmmare
- 2022年全国所有A级景区数据(13604条)
- 剑指offer-高质量的代码
- MOS管参数μCox得到的一种方法
- 偏执的非合格公司
猜你喜欢
MYSQL----导入导出&视图&索引&执行计划
MOS管参数μCox得到的一种方法
jdbc数据库连接池使用问题
Stack and queue-p79-10 [2014 unified examination real question]
Maze games based on JS
Basic introduction of JWT
Bus message bus
当前发布的SKU(销售规格)信息中包含疑似与宝贝无关的字
数据资产管理与数据安全国内外最新趋势
Answer to the first stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
随机推荐
根据IP获取地市
如何给目标机器人建模并仿真【数学/控制意义】
dolphinscheduler3. X local startup
.net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
2022年全国所有A级景区数据(13604条)
Maze games based on JS
AddressSanitizer 技术初体验
How to install swoole under window
Abnova 膜蛋白脂蛋白体技术及类别展示
Cloudcompare point pair selection
Prompt for channel security on the super-v / device defender side when installing vmmare
Bus message bus
【mysqld】Can't create/write to file
大咖云集|NextArch基金会云开发Meetup来啦
企业如何进行数据治理?分享数据治理4个方面的经验总结
毕业设计游戏商城
SolidWorks的GB库(钢型材库,包括铝型材、铝管等结构)安装及使用教程(生成铝型材为例)
unity3d学习笔记
.net core 访问不常见的静态文件类型(MIME 类型)
RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`问题解决