Solved

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

Posted on 2009-05-12
4
871 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Directions API to Map URL -C#? 3 48
MailAddress in vb 4 36
Upgrade code from VS 2010 to VS 2015 7 35
Web page design problem 3 19
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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

730 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