您可以访问 ASP.NET 网站之外的虚拟目录吗?
您可以访问 ASP.NET 站点之外的虚拟目录吗?
例如,在控制台应用程序中?
Can you access a Virtual Directory outside of an ASP.NET site?
For example, in a Console application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我将在 iis 下配置 ftp 文件夹,该文件夹指向上述目录,然后使用 ftp 协议和 Windows 或 Active Directory 用户为其提供一些应用程序访问权限。它能解决您的问题吗?通过使用 ftp 连接,您可以通过任何程序在该目录中执行任何操作。当然只要这个程序能够使用frp协议即可。或者安装它,您可以使用名为 psexec 的微软工具远程登录到该主机,并在您的目标主机上运行一些示例。有很多可能性。
您可以在 C# 或 vb.net 中找到一些现成且有用的代码,这些代码正在 google 上实现 ftp 客户端。
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.
从我的脑海中浮现出来..您是否已经研究过 System.DirectoryServices 命名空间。这还应该包括读/写虚拟目录。如果这有帮助,请告诉我。
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:
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.