title: How To Get Current Application URL Without using Request object (ex:HttpContext.Current.Request.Url.Authority) ASP.net
body: <p>I trying to get current url while executing the automatic job scheduling.
  Request object is null while executing  automatic job scheduling.</p>
  
  <p>My code:</p>
  
  <pre><code>string imgpath = HttpContext.Current.Request.Url.Authority + "/App_Themes/login_logo.png";
  </code></pre>
  
  <p>Request is <code>null(HttpContext.Current.Request.Url.Authority =null)</code>. So I am not able to get the current url.</p>
  
  <p>Anyother way to do this?</p>