title: How to get root folder of ASP.NET application
body: <p>I am trying to get the root folder of the application.  I have used the following code, but this gives the <code>bin</code> folder, but what I need is the root folder of the application.  Is it possible to get this?</p>
  
  <pre><code>// This is the full directory and exe name
  String fullAppName = Assembly.GetExecutingAssembly().GetName().CodeBase;
  
  // This strips off the exe name
  String fullAppPath = Path.GetDirectoryName(fullAppName);
  </code></pre>