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.Argument Exception: 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.EventArg s e)
{
WebClient mClient = new WebClient();
try{
mClient.UploadF ile("D:\\Cop.jp g"," http://mymachine/Pars/Images/Cop.jpg ");
}catch(Exceptio n 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.Argument Exception: 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.EventArg s e)
{
WebClient mClient = new WebClient();
try{
mClient.UploadF ile("D:\\Cop.jp g"," http://mymachine/Pars/Images/Cop.jpg ");
}catch(Exceptio n el){
MessageBox.Show ("Excep "+ el.ToString());
}
Comment