M
Mariela
I am trying to run the following C# code:
----------------------------------------
String uriString = "http://10.1.1.100/images/";
WebClient myWebClient = new WebClient();
string fileName = "C:\\agoodfriend.jpg";
byte[] responseArray = myWebClient.UploadFile
(uriString,"POST",fileName);
----------------------------------------
But I get the following error:
Exception Details: System.Net.WebException: The remote
server returned an error: (405) Method Not Allowed.
Does anyone know why this happens?
I suspected it was a permission thing. I tried enabling
the directory to be written, but it didn't work.
Thanks in advance for the help
----------------------------------------
String uriString = "http://10.1.1.100/images/";
WebClient myWebClient = new WebClient();
string fileName = "C:\\agoodfriend.jpg";
byte[] responseArray = myWebClient.UploadFile
(uriString,"POST",fileName);
----------------------------------------
But I get the following error:
Exception Details: System.Net.WebException: The remote
server returned an error: (405) Method Not Allowed.
Does anyone know why this happens?
I suspected it was a permission thing. I tried enabling
the directory to be written, but it didn't work.
Thanks in advance for the help