T
troyblakely
I am trying to set up an application that will send files (pictures) to
a server over an internet connection. My first thought was to use FTP,
but I am up to other suggestions as well. I am using the
OpenNETCF.Net.Ftp class to handle the data transfer. I built my methods
based on the sample in the OpenNETCF vault. It works great through the
emulator or the device over active sync, but it doesn't work over the
wireless internet connection - I get the error message "A socket
operation was attempted to an unreachable host".
So I added the following code to open an internet connection before
doing anything else ftp related.
OpenNETCF.Net.ConnectionManager cm = new ConnectionManager();
cm.Connect(ConnectionMode.Synchronous);
Now I get the message "Couldn't open passive data connection, no
DataConnection IP was given"
Am I missing something?
Should I be going about this in a different way?
Thanks for your help.
a server over an internet connection. My first thought was to use FTP,
but I am up to other suggestions as well. I am using the
OpenNETCF.Net.Ftp class to handle the data transfer. I built my methods
based on the sample in the OpenNETCF vault. It works great through the
emulator or the device over active sync, but it doesn't work over the
wireless internet connection - I get the error message "A socket
operation was attempted to an unreachable host".
So I added the following code to open an internet connection before
doing anything else ftp related.
OpenNETCF.Net.ConnectionManager cm = new ConnectionManager();
cm.Connect(ConnectionMode.Synchronous);
Now I get the message "Couldn't open passive data connection, no
DataConnection IP was given"
Am I missing something?
Should I be going about this in a different way?
Thanks for your help.