Dec 22, 2015

IIS get directory

string apPath = System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath;
or
string apPath = System.Web.Hosting.HostingEnvironment.MapPath("~/folder/file");

0 comments:

Post a Comment

Nam Le © 2014 - Designed by Templateism.com, Distributed By Templatelib