title: MVC Entity Framework connection string doesn't work
body: <p>When I google "MVC connection string" or something similar, I get a bunch of questions/articles about this, and all of those I have read says to edit a Web.config file. Is there any reasons for this not working in my project? </p>
  
  <p>My project uses Entity Framework, and now it works on a local db. I have edited 2x Web.config files (one in the project folder, and another in the Views folder - I dont really know the difference). These files did not originally have any <code>&lt;connectionStrings&gt;</code> tags, so I added this manually, to both files:</p>
  
  <pre><code>  &lt;connectionStrings&gt;
      &lt;add name="DefaultConnection" connectionString="Data Source=mysite.database.windows.net;Initial Catalog=Developer;User ID=user;Password=pass" providerName=".NET Framework Data Provider for SQL Server"/&gt;&lt;/connectionStrings&gt;
  </code></pre>
  
  <p>.. but it still uses my localhost database. Is there any obvious thing Im missing??</p>
  
  <p>EDIT:</p>
  
  <p>Deleting debug and rebuilding did not work.</p>
  
  <p>Here is my context class</p>
  
  <pre><code>public class TrackerContext : DbContext
  {
      public TrackerContext() : base() {}
      public DbSet&lt;Toll&gt; Tolls { get; set; }
      public DbSet&lt;TollRecord&gt; TollRecords { get; set; }
      public DbSet&lt;Trip&gt; Trips { get; set; }
      public DbSet&lt;TripRecord&gt; TripRecords { get; set; }
  }
  </code></pre>
  
  <p>No connection strings. Can I force it in somehow??</p>