upload上傳文件的問題
大俠們好:
我在c#中利用
System.Net.WebClient upload = new System.Net.WebClient();
byte[] responseArray = upload.UploadFile
("\\d:/BarCode.ocx","POST","BarCode.ocx");
上傳文件沒有任何問題,但是我利用
System.Net.WebClient upload = new System.Net.WebClient();
byte[] responseArray = upload.UploadFile("http://localhost/iis/BarCode.ocx","POST","BarCode.ocx");
上傳文件的時候出現如下錯誤:"The remote server returned an error: (405) Method Not Allowed."
請問應該怎麽解決?