title: Connecting to database(MS Access) in asp.net c#(hosting website)
body: <p>I have a hosted website, and I need to add a database with password and log-in information. (MS Access DB), I tried a lot but can't connect with it (on local machine it works). I tried to change connection string but it still doesn't work. Database is in folder App_Data. Here's what I type in <code>Login.aspx</code> page:</p>
  
  <pre><code>OleDbConnection con = new OleDbConnection();
  con.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
     + Server.MapPath("~\\App_Data\\WebSiteDatabase.accdb");
  con.Open();
  </code></pre>
  
  <p>This does not work. What do I need to change? I've put my web site on somee.com</p>