title: Get current directory in asp.net mvc
body: <p>I am trying to construct a file path in order to read an XSLT file, like so:</p>
  
  <pre><code>string path = "../_xslt/example.xslt";
  StreamReader reader = new StreamReader(path); 
  </code></pre>
  
  <p>...where I am in a controller (/Controllers/ExampleController.cs), and the '/_xslt/' folder is at the same level as '/Controllers'</p>
  
  <p>However, the error I am getting is:</p>
  
  <blockquote>
    <p>(System.IO.DirectoryNotFoundException)
    Could not find a part of the path 'c:\windows\system32\_xslt\example.xslt'.</p>
  </blockquote>
  
  <p>Am I going about this the wrong way?</p>
  
  <p>Thanks for any help!</p>