Click here to Skip to main content
15,886,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Basics Pin
Ingo5-Mar-13 1:00
Ingo5-Mar-13 1:00 
AnswerRe: C# Basics Pin
Sachin k Rajput 5-Mar-13 1:25
Sachin k Rajput 5-Mar-13 1:25 
GeneralRe: C# Basics Pin
nabeel6345-Mar-13 18:29
nabeel6345-Mar-13 18:29 
QuestionUpload file using webclient Pin
vanikanc4-Mar-13 7:47
vanikanc4-Mar-13 7:47 
QuestionRe: Upload file using webclient Pin
Eddy Vluggen4-Mar-13 8:44
professionalEddy Vluggen4-Mar-13 8:44 
AnswerRe: Upload file using webclient Pin
vanikanc4-Mar-13 9:50
vanikanc4-Mar-13 9:50 
GeneralRe: Upload file using webclient Pin
Eddy Vluggen4-Mar-13 10:46
professionalEddy Vluggen4-Mar-13 10:46 
AnswerRe: Upload file using webclient Pin
Keith Barrow4-Mar-13 23:49
professionalKeith Barrow4-Mar-13 23:49 
The "Upload complete" doesn't mean a thing it'll only not show if something throws an error beforehand. UploadFile only thows in the following circumstances:

  • The Address or Filename being null
  • The URI formed by combining BaseAddress, and address is invalid.
  • fileName is null, is Empty, contains invalid characters, or does not exist.
  • An error occurred while uploading the file.
  • There was no response from the server hosting the resource.
  • The Content-type header begins with multipart.


None of which apply to your code. You might get better explanation of what is happing by reading the returned byte array:

C#
byte[] responseArray = myWebClient.UploadFile(....);
string response =  System.Text.Encoding.ASCII.GetString(responseArray)



In any case, it looks like the server won't allow posts to the root which is why you are getting the 405. It might also be worth checking something is listening on port 85, and it isn't being blocked by a firewall.

QuestionHow to capture url of the selected browser? Pin
micman4-Mar-13 6:37
micman4-Mar-13 6:37 
AnswerRe: How to capture url of the selected browser? Pin
Dave Kreskowiak4-Mar-13 8:20
mveDave Kreskowiak4-Mar-13 8:20 
QuestionTab strip control Pin
Jagatpreet4-Mar-13 6:00
Jagatpreet4-Mar-13 6:00 
AnswerRe: Tab strip control Pin
Abhinav S4-Mar-13 6:12
Abhinav S4-Mar-13 6:12 
AnswerRe: Tab strip control Pin
Eddy Vluggen4-Mar-13 8:46
professionalEddy Vluggen4-Mar-13 8:46 
QuestionC++ or C#.. !!!!! Pin
Usman Hunjra4-Mar-13 5:22
Usman Hunjra4-Mar-13 5:22 
AnswerRe: C++ or C#.. !!!!! Pin
NotPolitcallyCorrect4-Mar-13 5:41
NotPolitcallyCorrect4-Mar-13 5:41 
AnswerRe: C++ or C#.. !!!!! Pin
Abhinav S4-Mar-13 6:11
Abhinav S4-Mar-13 6:11 
AnswerRe: C++ or C#.. !!!!! Pin
jschell4-Mar-13 9:38
jschell4-Mar-13 9:38 
AnswerRe: C++ or C#.. !!!!! Pin
PIEBALDconsult4-Mar-13 13:31
mvePIEBALDconsult4-Mar-13 13:31 
AnswerRe: C++ or C#.. !!!!! Pin
Alan Balkany5-Mar-13 4:17
Alan Balkany5-Mar-13 4:17 
Questionsnmp c shap Pin
Member 98700584-Mar-13 1:29
Member 98700584-Mar-13 1:29 
AnswerRe: snmp c shap Pin
Dave Kreskowiak4-Mar-13 1:33
mveDave Kreskowiak4-Mar-13 1:33 
GeneralRe: snmp c shap Pin
Member 98700584-Mar-13 1:36
Member 98700584-Mar-13 1:36 
GeneralRe: snmp c shap Pin
Dave Kreskowiak4-Mar-13 1:44
mveDave Kreskowiak4-Mar-13 1:44 
GeneralRe: snmp c shap Pin
Member 98700584-Mar-13 1:46
Member 98700584-Mar-13 1:46 
GeneralRe: snmp c shap Pin
Member 98700584-Mar-13 9:02
Member 98700584-Mar-13 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.