title: How do i get bin or wwwroot directory in ASP.NET MVC 6 (SIX) code
body: <p>In ASP.NET MVC 5 I used </p>
  
  <pre><code>_myStem = new MyStemWrapper(Path.Combine(HttpRuntime.AppDomainAppPath, "mystem.exe"));
  </code></pre>
  
  <p>to get path to file.</p>
  
  <p>In ASP.NET MVC 6 I can't get path by the same way. I need to get path before any requests since my wrapper is a singleton created by IOC</p>
  
  <pre><code>var d = AppDomain.CurrentDomain; // some path to C:\Users\username\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta5\bin
  var r = HttpRuntime.BinDirectory; // ArgumentNullException
  var r2 = HttpRuntime.AppDomainAppPath; // ArgumentNullException
  var ap = Apllication.StartupPath; // Application class missing
  var s = Server.MapPath("~/") // Server class missing
  </code></pre>