Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
trying to use WebClient to download a file, URL contains a port number
Mike Gillespie
Jul 9 2009 4:41 PM
4.1k
Reply
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!
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
What are Web Services ? How Web Services are working in web application ?
Compile a Web Service without visual studio IDE