Get current application physical path within Application_Start

asp.net, c#

Solution

 protected void Application_Start(object sender, EventArgs e)
 {
     string path = Server.MapPath("/");
     //or 
     string path2 = Server.MapPath("~");
     //depends on your application needs

 }

Problem

I'm not able to get the current physical path within Application_Start using ``` HttpContext.Current.Request.PhysicalApplicationPath ``` because there is no Request object at that time. How else can I get the physical path?

Original source

Related problems