Click here to Skip to main content
15,907,492 members
Home / Discussions / C#
   

C#

 
AnswerRe: Trackbar 0.5 SmallChange Pin
Pete O'Hanlon5-Mar-13 2:39
mvePete O'Hanlon5-Mar-13 2:39 
AnswerRe: Trackbar 0.5 SmallChange Pin
Keith Barrow5-Mar-13 3:08
professionalKeith Barrow5-Mar-13 3:08 
QuestionUnity Application Block Error Pin
Bill Warner5-Mar-13 2:03
Bill Warner5-Mar-13 2:03 
AnswerRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 2:23
professionalKeith Barrow5-Mar-13 2:23 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 3:07
Bill Warner5-Mar-13 3:07 
GeneralRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 3:26
professionalKeith Barrow5-Mar-13 3:26 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 3:56
Bill Warner5-Mar-13 3:56 
GeneralRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 4:38
professionalKeith Barrow5-Mar-13 4:38 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 4:55
Bill Warner5-Mar-13 4:55 
GeneralRe: Unity Application Block Error Pin
Keith Barrow5-Mar-13 5:04
professionalKeith Barrow5-Mar-13 5:04 
GeneralRe: Unity Application Block Error Pin
Bill Warner5-Mar-13 5:32
Bill Warner5-Mar-13 5:32 
GeneralRe: Unity Application Block Error [Modified] Pin
Keith Barrow5-Mar-13 5:59
professionalKeith Barrow5-Mar-13 5:59 
GeneralRe: Unity Application Block Error [Modified] Pin
Bill Warner5-Mar-13 6:18
Bill Warner5-Mar-13 6:18 
GeneralRe: Unity Application Block Error [Modified] Pin
Keith Barrow5-Mar-13 6:19
professionalKeith Barrow5-Mar-13 6:19 
QuestionC# Basics Pin
nabeel6345-Mar-13 0:44
nabeel6345-Mar-13 0:44 
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 

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.