Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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.

862 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now