It seems like an All-Local way to get the root directory where the application works through C # , but this question seems to be related to Win Forms. How to do the same for web forms?
I used...
HttpContext.Current.Server.MapPath("~")
This works fine for handling HTTP requests, but it doesn't seem to work if a scheduler like Quartz.NET is causing the task (I have a problem). HttpContext.Current is null in this scenario because the actual HTTP request has failed.
Eddie
source share