Click here to Skip to main content
15,877,966 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I kept my files in F drive and i want to export my folder through my localhost url. For that i gave in web.config file as
<add key="importUrl" value="http://localhost:2022/bin/TTI/Import"/>
        <add key="exportUrl" value="http://localhost:2022/bin/TTI/Export"/>

In my code,i gave as
string savePath = "~/Export";
using (WebClient client = new WebClient())
     var path = Server.MapPath("~/Export");
DirectoryInfo di = new DirectoryInfo(@"F:/VS2008/TTI_Script(Web)/TTI_Script(Web)/bin/TTI/Import");

Im getting error as "URI formats not supported in the above line...I tried but don't know how to solve this issue. Guide me.
Updated 10-Dec-12 21:32pm
[no name] 11-Dec-12 3:39am    
HI Priyaaammu,

I think you are using the path for the local host. And your local host works on a single port number i.e 2022. Please check once whether that port is active or not. And add the error details that you are getting at your end. That may help us for better understanding.

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900