Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
12.3k views
in .NET FTP by
Hi,

I have made an application that makes an automatic move of an uploaded file to an external server using your .net package.

This works fine when I am doing it from an XP pro SP1 box (my developer computer), but it fails when I run the code on my webserver which is running Windows 2000 SP4. Both computers are connected to the internet using the same firewall/router.

Does it matter that I have a Serv-U FTP server on my W2K box?


Morten

8 Answers

0 votes
by
Here is the error message:

[SocketException (0x2714): A blocking operation was interrupted by a call to WSACancelBlockingCall]
   System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +373
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +102

[IOException: Unable to read data from the transport connection.]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +149
   System.IO.StreamReader.ReadBuffer() +46
   System.IO.StreamReader.ReadLine() +33
   com.enterprisedt.net.ftp.FTPControlSocket.ReadReply() in C:\Inetpub\wwwroot\MaP3_CMS\FtpClient\FTPControlSocket.cs:461
   com.enterprisedt.net.ftp.FTPClient.Dir(String dirname, Boolean full) in C:\Inetpub\wwwroot\MaP3_CMS\FtpClient\FTPClient.cs:1212
   com.enterprisedt.net.ftp.FTPClient.Dir() in C:\Inetpub\wwwroot\MaP3_CMS\FtpClient\FTPClient.cs:1135
   MaP3_CMS.DocumentExternalUpload.Upload(String LocalFile, String LocalPath, String RemoteDirName, Int64 Timeout) in c:\inetpub\wwwroot\MaP3_CMS\ClassesAndModules\DocumentExternalUpload.vb:35



Morten
0 votes
by
Can you FTP from the command-line on the W2K box to your destination? Having an FTP server on the box should make no difference whatsoever (as long as you aren't connecting to localhost).


Hi,

I have made an application that makes an automatic move of an uploaded file to an external server using your .net package.

This works fine when I am doing it from an XP pro SP1 box (my developer computer), but it fails when I run the code on my webserver which is running Windows 2000 SP4. Both computers are connected to the internet using the same firewall/router.

Does it matter that I have a Serv-U FTP server on my W2K box?


Morten
0 votes
by
Hi,

Yes, I can access ftp from my webserver via Command line FTP. I can both send and receive files from my webserver command line client.


Morten
0 votes
by
Hi,

I tested as you asked, and as you can see from my previous post, I can connect and operate via command line FTP.

But it still fails when I use your library to connect to the same server using Win 2K server, and it works fine when using Win XP Pro.

Any ideas?


Morten
0 votes
by
Possibly you are using different versions of the .NET runtime on the two machine?

Hi,

I tested as you asked, and as you can see from my previous post, I can connect and operate via command line FTP.

But it still fails when I use your library to connect to the same server using Win 2K server, and it works fine when using Win XP Pro.

Any ideas?


Morten
0 votes
by
No, both boxes are running .Net Framework 1.1


Possibly you are using different versions of the .NET runtime on the two machine?

Hi,

I tested as you asked, and as you can see from my previous post, I can connect and operate via command line FTP.

But it still fails when I use your library to connect to the same server using Win 2K server, and it works fine when using Win XP Pro.

Any ideas?


Morten
0 votes
by
I have now stopped using this library and started using XCeed FTP library for .net. Much better documented, and support works. That is wort paying a little for.


Morten
0 votes
by
We're sorry it didn't work for you. You always have the option of paying for support with our free libraries, but there is a limit to the amount of free time we can dedicate to answering specific questions on the forums. Also, many people find having the source available is extremely useful, and enables them to solve many difficulties themselves.

I have now stopped using this library and started using XCeed FTP library for .net. Much better documented, and support works. That is wort paying a little for.


Morten

Categories

...