Click here to Skip to main content
12,890,970 members (53,734 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
I want to copy file following address to my server.
I want to copy this file and save in my folder on server.

http:\\\RecFolder\2012-09-14 04-29-24 Line 4.UP2

this path gives error.

URI format not supported.
Posted 7-Oct-12 20:01pm
What is not clear in this error?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Such URIs are not supported by this function. It works only for the file systems mounted on the local computer. The files themselves could be on some other computer, if they are in the directory shared for the network users using file sharing protocols and this directory is mounted on a client computer. Other kinds of protocols (like HTTP, FTP and so on) are not supported.

To down load a file exposed via HTTP, you can use the class System.Net.HttpWebRequest:[^].

For one sample showing how to download, you can use my application HttpDownloaded posted here:
how to download a file from internet[^].

See also my past answer:
how to download a file from the server in 2.0[^].


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100