• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 922
  • Last Modified:

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

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
jonatec
Asked:
jonatec
  • 2
2 Solutions
 
silemoneCommented:
Can you create a service on the other service and get to the file through the service?
0
 
jonatecAuthor Commented:
You mean a Web Service? Isn't this an overkill?
0
 
spprivateCommented:
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
 
jonatecAuthor Commented:
Ok, thanks guys, I hear the consensus. Cheers.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now