title: How change location of |DataDirectory| in ASP.NET application built in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13169526/using-a-relative-path-in-connection-string-for-access-db-in-c-sharp">Using a relative path in connection string for Access DB in C#</a>  </p>
  </blockquote>
  
  
  
  <p>This is my current connection string in web.config</p>
  
  <pre><code>&lt;connectionStrings&gt;
     &lt;add name="dbConnection" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\GeauxEatAccessDB.accdb"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>but instead of looking in the App_Data folder, the application looks in </p>
  
  <pre><code>"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\DevServer\\10.0"
  </code></pre>
  
  <p>which isn't right. How and where can I change the default location of |DataDirectory| to be the relative path of App_Data inside the project folder?</p>