How to Download/Upload files using OpenNETCF.Net.Ftp ?

  • Thread starter Tihomir Ignatov
  • Start date
T

Tihomir Ignatov

Hello,
How can I Download/Upload files using OpenNETCF.Net.Ftp ?

Regards
Tihomir
 
T

Tihomir Ignatov

Yes, I have!
But there isn't (Vault) Class FTP:

CommandResponse.cs
FtpCommandType.cs
FtpControlStream.cs
FtpDataStream.cs
FtpRequestCreator.cs
FtpStatusCode.cs
FtpStream.cs
FtpWebRequest.cs
FtpWebResponse.cs
X509CertificateCollection.cs




Regards
Tihomir Ignatov
 
T

Tihomir Ignatov

Hi
I explore this source and example before write my post, but there
haven't a demonstration for download/upload!

Regards
Tihomir Ignatov
 
P

Paul G. Tobey [eMVP]

I'm checking into it. There are files that I have which don't appear in the
vault...

Paul T.
 
C

Chris Tacke, eMVP

There is no FTP class in the SDF. We initially had one in Vault, but we
refactored the namespace to match the full framework, so it was removed
before the SDF 1.3 release. There's a sample for using the existing classes
in Vault.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
D

Damon Payne

Paul, any progress on the upload example? I didn't see anything in
Vault either.
 
P

Paul G. Tobey [eMVP]

There is a new sample in Samples\Ftp\FtpFile. There was also a bug in the
FtpDataSteam class which has been fixed, so you'll have to get the latest
version of that from the Vault and compile the OpenNETCF.Net namespace
yourself.

Paul T.
 
D

Damon Payne

I got the new example and built the FTP classes. I am using this code
to upload a series of images, often 50 or more. I am experiencing
behavior where after 10-12 images I will get an error such as "Unable
to log in to FTP server" or "Connection closed by remote host" or
"Unable to connect because the target machine actively refused it". I
have re-try logic in place, but it seems as though once it crashes it
will not be able to successfully make the connection again without
restarting the app. Any thoughts?
 
P

Paul G. Tobey [eMVP]

No, you'll have to debug it and see exactly at what point something happens
and what it is that happens. You might also need to capture the packets
themselves off of the network and review what's going on there. What FTP
server are you talking to?

Paul T.
 
D

Damon Payne

My code is based (copy and paste) from the Vault sample. After a few
successfull files it is unable to connect any longer. The FTP server
is PureFTPD running on BSD. I tried another FTP library tonight and
had the same issue, so now I am leaning more towards a general
"connection pool" or ActiveSync type issue. I will see what I can see
in the debugger. If this rings a bell I'd appreciate anything I could
try.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top