Server MapPath without HttpContext?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top