title: Can't run code first migrations using migrate.exe
body: <p>I'm trying to update a database on a test system.  When I run <code>update-database</code> in visual studio things work as expected.  </p>
  
  <p>When I deploy and then try to run on a test machine:</p>
  
  <pre><code>Migrate.exe CodeFirst.dll /startupConfigurationFile="..\web.config"
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>no connection string named xxx could be found in the application config file</p>
  </blockquote>
  
  <p>...even though there is a connection string with that name in the web.config.  There is only one .config file, there isn't a config file for the dll that I'm running against</p>
  
  <p>I attempted to declare my connection string manually:</p>
  
  <pre><code>Migrate.exe CodeFirst.dll /connectionString="Data Source=192.168...;Initial Catalog=Database;" /connectionProviderName="System.Data.SqlClient"
  </code></pre>
  
  <p>but that still gave the the same error for some reason...  Is it ignoring the connection string that I'm passing in and trying to look for one again?  Why would it do that?</p>
  
  <p><strike>but that gave me a really weird error: </p>
  
  <blockquote>
    <p>The migrations configurations type "Source=192.168... could not be
    found in the assembly CodeFirst.dll
    I wondered if it had something to do with spaces, so I tried changing 'data source' to 'server' and Initial Catalog to 'database' but that didn't help.</strike>  </p>
  </blockquote>
  
  <p>edit: fixed quotation marks</p>
  
  <p>I've seen similar questions but they were all about running inside of visual studio and I have no issues when trying to do that.  Any more ideas of what I can do?  Has anyone gotten either of these options to work?</p>