title: Azure: The context is being used in Code First mode with code that was generated from an EDMX
body: <p>I have MVC app running fine in local. After updating to Azure, it started throwing the error: </p>
  
  <blockquote>
    <p>The context is being used in Code First mode with code that was generated from an EDMX file for either Database First or Model First development. This will not work correctly. To fix this problem do not remove the line of code that throws this exception. If you wish to use Database First or Model First, then make sure that the Entity Framework connection string is included in the app.config or web.config of the start-up project.</p>
  </blockquote>
  
  <p>I have checked if there is any difference between the local web.config and azure web.config. except the credentials, everything is same. And it read:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;add name="DBEntities" 
       connectionString="metadata=res://*/DBModel.csdl|res://*/DBModel.ssdl|res://*/DBModel.msl;
                         provider=System.Data.SqlClient;
                         provider connection string=&amp;quot;data source=xx;initial catalog=xx;persist security info=True;user id=xx;password=xx;MultipleActiveResultSets=True;application name=EntityFramework&amp;quot;" 
       providerName="System.Data.EntityClient" /&gt;
  </code></pre>
  
  <p>I am using EF 6.1.3, MVC5</p>