I can't get the UploadFile() method to work. I assume I must have something
set up wrong. My code looks like this:
WebClient myClient = new WebClient();
byte response = myClient.UploadFile("http://localhost/upload/newfile.txt",
I get a WebException with a status of ProtocolError. If I look in my IIS
log, I am getting a 405 error:
20:09:47 127.0.0.1 POST /upload/newfile.txt 405
My Upload virtual directory has "Write" access allowed, and is set to
Anonymous and Integrated directory security.
Can anyone tell me what I need to do to get this method to work?