title: Getting current directory in .NET web application
body: <p>So I have a web project, and I'm trying to get the root directory of the website using the c# method <code>Directory.GetCurrentDirectory()</code>.  I don't want to be using a static path as the file locations will be changing in the future.  This method is running in my imageProcess.aspx.cs file, but where I thought it would return:</p>
  
  <pre><code>C:\Users\tcbl\documents\visual studio 2010\Projects\ModelMonitoring\ModelMonitoring\imageProcess.aspx.cs
  </code></pre>
  
  <p>I'm instead getting:</p>
  
  <pre><code>C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\
  </code></pre>
  
  <p>Can anyone explain why this is happening and what a possible solution might be? Thanks a lot.</p>