Hello,
I'm trying to create a ftp application for Windows Mobile.
I'm using VisualStudio 2008 with OpenNETCF Framework for Windows Mobile.
I have a problem with the following code...
the code is working until line 11. There, I get the following error.
"Values does not fall within the expected range."
I don't know why? I have no clue.
Thank you for your support!
I'm trying to create a ftp application for Windows Mobile.
I'm using VisualStudio 2008 with OpenNETCF Framework for Windows Mobile.
I have a problem with the following code...
Code:
string pathu = "ftp://10.0.1.100/florinpa/_desc.txt";
MessageBox.Show("S-a definit pathu de conectare");
Uri serveru = new Uri(@pathu);
MessageBox.Show("S-a definit Uri");
FtpWebRequest request = FtpWebRequest)FtpWebRequest.CreateDefault(serveru);
MessageBox.Show("S-a definit requestu");
request.Binary = true;
MessageBox.Show("S-a definit request Binary");
request.Credentials = new NetworkCredential("florinpa", "corcodel");
MessageBox.Show("S-au definit credentialele");
request.Method = WebRequestMethods.Ftp.DeleteFile;
MessageBox.Show("S-a definit metoda");
"Values does not fall within the expected range."
I don't know why? I have no clue.
Thank you for your support!
Comment