views:

298

answers:

5

Can you access a Virtual Directory outside of an ASP.NET site?

For example, in a Console application?

A: 

Of course. Why not?

Mendy
A: 

I would configure ftp folder under iis which is pointing to that mentioned directory and then using ftp protocol and windows or active directory user give some application access rights to it. Dose it solve youre issue? By using ftp connection you can do anything you want in that directory by any program you want. Of course as long as this program is able to use frp protocol. Or insted of it you can log remotly to that host using microsoft tool named psexec and run for exzample some but on you target host. There are many possibiliteis. You can find some ready and usefull code in C# or vb.net which is implementing ftp client on google.

truthseeker
A: 

Off the top of my head..Have you already looked into System.DirectoryServices namespace for this. That should also include reading/writing virtual directories. Let me know If this helps.

ydobonmai
A: 

I'm confused on what you mean by "access"? Are you trying to access the:

  1. physical files that are stored in the Virtual Directory (Ftp/UNC/Webdav access via file services)
  2. Virtual Directory with a view to manage it and change its properties (using the Microsoft.Web.Administration assembly)
  3. data that the Virtual Directory presents (Web services/Scraping etc.)

I think you need to be a little clearer with your question if you want a useful answer.

Tr1stan
A: 

We use mapped drives and permissions setup on the App Pool for the application to access other directories on other servers.

Hupperware