Solved

C# reading files from a remote web server virtual directory.

Posted on 2009-05-12
4
863 Views
Last Modified: 2012-05-06
Using C# .net 2.0.

I need to be able to trawl down a folder on a remote web server that has been set up as a virtual directory, with my C# behind code for my aspx. Can't use conventional file IO class because I'm getting "URI format not supported" errors. I need to pull back the file names from this folder. Any ideas please?
0
Comment
Question by:jonatec
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
silemone earned 400 total points
ID: 24364543
Can you create a service on the other service and get to the file through the service?
0
 

Author Comment

by:jonatec
ID: 24364754
You mean a Web Service? Isn't this an overkill?
0
 
LVL 15

Assisted Solution

by:spprivate
spprivate earned 100 total points
ID: 24364913
Silemone;s suggestion is good
It is not really a overkill
We used the exact architecture.
First request will call a webservice in the other server and get the list of files.
then we used webclient to download those files.
Cos weblcient can only download file by http request we had to do this.
But thats the good solution
0
 

Author Closing Comment

by:jonatec
ID: 31580525
Ok, thanks guys, I hear the consensus. Cheers.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question