Click here to Skip to main content
11,720,545 members (69,888 online)
Rate this: bad
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
Sergey Alexandrovich Kryukov at 8-Oct-12 2:31am
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
0 Sergey Alexandrovich Kryukov 2,029
1 OriginalGriff 844
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2015
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