Hi i am trying to get hosting path/Localhost path in application_start of grobal.asax file but its throwing error.
here is my code i have written to get this.
protected void Application_Start()
{
URL = System.Web.HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority).ToString();
}
Error : Request is not available in this context exception in Application_Start
Thanks
Santosh