?
Solved

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

Posted on 2009-05-12
4
Medium Priority
?
888 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
silemone earned 1600 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 400 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
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.

777 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