TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Michael
NA
20
0
Webclient stuff
Oct 18 2007 2:51 PM
So I am trying to upload a file to a folder on my website, the code I am using is this
WebClient Client = new WebClient();
NetworkCredential networkCredential = new NetworkCredential("username", "password");
networkCredential.Domain = "???";//not sure what goes here
Client.Credentials = networkCredential;
Client.UploadFile("http://www.mysite.net/myfolder/","POST", @"pathtofile");
but i get an error saying The remote server returned an error: (404) Not Found. when it comes to the Client.UploadFile() function.
Any help on how to fix this would be wonderfull.
Reply
Answers (
0
)
What Atribute to set to show it structured in PropertiyGrid?
passing data to another program and back? howDoI?