A
Arash
Hi everybody,
I am trying to upload a file to my local server (http://mymachine) using
the code below, what I get as error is:
"... ---> System.ArgumentException: URI formats are not supported. ..."
I have also tryed the destination without file name (ommiting "Cop.jpg") and
got the same error. Please please help me.
Regards
Arash
Code:
private void btnUpload_Click(object sender, System.EventArgs e)
{
WebClient mClient = new WebClient();
try{
mClient.UploadFile("D:\\Cop.jpg"," http://mymachine/Pars/Images/Cop.jpg ");
}catch(Exception el){
MessageBox.Show("Excep "+ el.ToString());
}
I am trying to upload a file to my local server (http://mymachine) using
the code below, what I get as error is:
"... ---> System.ArgumentException: URI formats are not supported. ..."
I have also tryed the destination without file name (ommiting "Cop.jpg") and
got the same error. Please please help me.
Regards
Arash
Code:
private void btnUpload_Click(object sender, System.EventArgs e)
{
WebClient mClient = new WebClient();
try{
mClient.UploadFile("D:\\Cop.jpg"," http://mymachine/Pars/Images/Cop.jpg ");
}catch(Exception el){
MessageBox.Show("Excep "+ el.ToString());
}