开发者

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

开发者 https://www.devze.com 2022-12-18 09:41 出处:网络
Can you access a Virtual Directory outside of an ASP.NET site? For example,in a Co开发者_开发知识库nsole application?I would configure ftp folder under iis which is pointing to that mentioned directo

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

For example, in a Co开发者_开发知识库nsole application?


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.


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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号