简体   繁体   中英

ASP.NET Webforms Accessing Files not in application directory

How can I programmatically access files via a url that are located in a directory not in the application directory? For example, if I have a url like mysite.com that paths to c:\\mysite, I want to have a url like: mysite.com/reports that paths to c:\\reports.

Am I able to write code that enables to sniff the incoming url request and map it to the appropriate directory?

您可以尝试使用已经可以访问该文件夹的帐户来使用模拟,或者为IIS工作进程授予对所需文件夹的访问权限。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM