Server MapPath without HttpContext?

  • Thread starter Thread starter xeroxero
  • Start date Start date
X

xeroxero

When a user hits a web page in ASP.NET 2.0, I can use
HttpContext.Current.Server.MapPath("~/mydir") to find the real
filesystem location of a file. But in an event triggered in my
global.asax, there is no HttpContext. How can I get the equivalent
directory?


Thanks.
 
Back
Top