Reputation: 1115
I have a virtual directory on IIS7 that is pointing to a folder inside my application root. I have some files there and I need my asp.net application reads and lists those files. How can I do that? Is there any way to know which is the real physical path of a virtual directory from asp.net? I'd really appreciate any help. Thanks.
Upvotes: 3
Views: 4626
Reputation: 31270
You can use Server.MapPath
string physicalFilePath = Server.MapPath("~/path/relative/to/my/app");
Upvotes: 2