gpt4 book ai didi

c# - FTPWeb 请求.NET 3.5 与 4

转载 作者:太空宇宙 更新时间:2023-11-03 14:17:39 24 4
gpt4 key购买 nike

我有一个与 IBM 大型机建立 FTP 连接的应用程序,并且一切正常。然后我针对 .NET 4 重新编译,大型机不再接受该文件,给我一条错误消息,指出该文件不存在,或者我没有权限。

这是我用来发送文件的:

Ftp = (FtpWebRequest)FtpWebRequest.Create(FtpAddress + "%2F'" + "EM.MOM.FIMSDATA" + ".AA." + "RR(+1)" + "'");

Microsoft 是否更改了 .NET 3.5 和 4 之间的任何内容,因为这指向框架更改?

最佳答案

我在 Microsoft 上找到了这个。

The cause of this issue is due to a behavior change in the System.Net.FtpWebRequest class in .Net Framework 4. There has been a change made to the System.Net.FtpWebRequest class from .Net Framework 3.5 to .Net Framework 4 to streamline the use of the CWD protocol commands. The new implementation of the System.Net.FtpWebRequest class prevents the send of extra CWD commands before issuing the actual command which the user requested and instead directly sends the requested command. For fully RFC compliant FTP servers, this should not be an issue, however for non-fully RFC compliant servers, you will see these types of errors.

解决方案是: http://support.microsoft.com/kb/2134299

关于c# - FTPWeb 请求.NET 3.5 与 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6251169/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com