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
Mike Gillespie
NA
5
0
trying to use WebClient to download a file, URL contains a port number
Jul 9 2009 4:41 PM
I am writing code which needs to download some files using a URL. I am using this type of code:
WebClient webClient = new WebClient;
webClient.DownloadFile(clipURL, destinationPath);
however the URLs that I need to download have ports specified in them eg. http://www.myurl.com:1010/path/file.doc
I'm getting an error on the download file command saying that URI formats are not supported. which is strange because a URL is just a certain type of URI. I have a feeling that the port number being in there is what is causing the problem, however it must be there. I'm communicating over a LAN with a web service listening on a certain port only. is there a workaround for this problem?
thanks!
Reply
Answers (
0
)
What are Web Services ? How Web Services are working in web application ?
Compile a Web Service without visual studio IDE