Similar to Ubiquitous way to get the root directory an application is running in via C#, but that question seems to be related to Win Forms. How would the same be done for Web Forms?
I was using...
HttpContext.Current.Server.MapPath("~")
This works great for handling HTTP requests but seems not to work if a scheduler like Quartz.NET invokes a job (the problem I am having). The HttpContext.Current
is null in that scenario since an actual HTTP request is not made.