title: How to get the physical folder of the current view with ASP.NET MVC?
body: <p>I have a separate utility class that is called in the controller, and i need to access a file inside the Views folder. Inside the the Views{controller} are a couple of sub folders that contain the different views. What I'm looking for is something similar to using: </p>
  
  <pre><code>HttpContext.Current.Request.PhysicalApplicationPath
  </code></pre>
  
  <p>to get the physical folder on the drive.</p>
  
  <p>I tried using:</p>
  
  <pre><code>HttpContext.Current.Request.MapPath(HttpContext.Current.Request.Path);
  </code></pre>
  
  <p>but that just maps the requested route to a physical path that doesn't actually exits (ie. if i request '/Cars/Models/123' it will return 'C:\AppPath\Cars\Models\123\')</p>
  
  <p>Any ideas?</p>