title: Cannot connect to SQL server AppHarbor
body: <pre><code> &lt;entityFramework&gt;
      &lt;defaultConnectionFactory  type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"&gt;
        &lt;parameters&gt;
          &lt;parameter value="v11.0" /&gt;
        &lt;/parameters&gt;
      &lt;/defaultConnectionFactory&gt;
    &lt;/entityFramework&gt;
  </code></pre>
  
  <p>Is the above relevant? I just have it in there in order not to screw things further. 
  But below is what I'm interested in, it is a connection string of my local sql server</p>
  
  <pre><code>  &lt;connectionStrings&gt;
      &lt;add name="ApplicationServices" connectionString="Data Source=localhost;Initial Catalog=TestDB;User ID=lews;Password='therin'" providerName="System.Data.SqlClient" /&gt;
  </code></pre>
  
  <p><strong>"When you create a database on Sequelizer you can specify a connection string alias. This is done on the Sequelizer add-on page (follow the "Go to ..." link on the application overview). If you set this name as the name of your connection string in your configuration file, we'll automatically replace it with your Sequelizer connection string when your code is deployed."</strong></p>
  
  <p>That's a snippet from Appharbor's documentation. So I assume that Data Source, Initial Catalog, User ID and password is automatically replaced with the correct values by AppHarbor. But it can't connect for some reason. </p>
  
  <p>Below is another string I am using with MySQL this time, again I assume that AppHarbor should automagically inject the right values, but the error it gives is: </p>
  
  <p>"PeopleEntities cannot be found in the application configuration file"
  What is going on? </p>
  
  <pre><code> &lt;add name="PeopleEntities" connectionString="metadata=res://*/Context.People.csdl|res://*/Context.People.ssdl|res://*/Context.People.msl;provider=MySql.Data.MySqlClient;provider connection string=&amp;quot;server=localhost;user id=root;database=people&amp;quot;" providerName="System.Data.EntityClient" /&gt;
        &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>Btw, the names "PeopleEntities" and "ApplicationServices" are used as aliases on AppHarbor.
  And I have no idea how to use the code given in the documentation, databases is just not my thing.. how do I use both local and remote conn strings? Where in the code do I build the string and inject it? Do I have to do it whenever I create a DBContext instance? Etc..</p>
  
  <p>Any ideas will be great, thanks!</p>
  
  <p><strong>EDIT:</strong>
  Btw, if I hard code the connection strings, in the app.config and use a wcftestclient, it works, it queries the database.. but this isn't a good idea, apparently the connection strings can change without warning.</p>
  
  <p>Anyway if I deploy it with the strings hardcoded and connect to the database with my site.. it doesn't query the SQL server.. really confused :(</p>