title: Entity Framework - Connection string - Keyword not supported 'Data Source'
body: <p>I know this is a common issue faced by beginners in EF and there have been multiple questions and answers on the same here, but still I have not been able to still resolve the issue.</p>
  
  <p>I am using EF 4.1 and MVC 3 and have generated the EF model from the DB in a separate library. I have copied the connection string from the app.config in the supporting library to the web.config of my application. I am also instantiating the object context by passing the web.config connection string.</p>
  
  <pre><code>string connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["MasterDataContainer"].ConnectionString;
  
  context = new MasterDataContainer(connectionString);
  </code></pre>
  
  <p>The connection string in web.config is as below</p>
  
  <pre><code>&lt;connectionStrings&gt;    
      &lt;add name="MasterDataContainer" connectionString="metadata=res://*/MasterData.csdl|res://*/MasterData.ssdl|res://*/MasterData.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=.;Initial Catalog=MasterData;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>I am getting the error "Keyword not supported : data source".
  Any help on this is appreciated.</p>