title: How do I find the root path of a website from a dll?
body: <p>I have a C# website. It references several compiled dlls.
  My dlls need to access folders on the website. 
  How do I find the root path of the website from the dlls?</p>
  
  <p>I've tried </p>
  
  <p>System.Environment.CurrentDirectory - > "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"</p>
  
  <p>Assembly.GetExecutingAssembly().Location - > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files......</p>
  
  <p>I was going to use </p>
  
  <p>System.Web.HttpContext.Current.Server.MapPath()</p>
  
  <p>but System.Web.HttpContext.Current is null.</p>
  
  <p>Thanks!</p>