Global.asax takes the physical path. and takes the absolute path

  • 2020-06-19 10:05:44
  • OfStack

The virtual path


Server.MapPath("~/")  That's the virtual path 

Take the absolute path


string absolutelyPath =AppDomain.CurrentDomain.BaseDirectory;

Take the physical path and the application path


System.Web.HttpContext.Current.Request.ApplicationPath


Related articles: