title: EDMX connection string
body: <p>so the story is like this.</p>
  
  <p>I have a project, called PA.DLL,  which have an entity model inside of it (edmx) file.</p>
  
  <p>In another project which i'm referencing to the PA.DLL, i copied the connection string that was created (automatically) when creating the edmx file into the main app app.config.</p>
  
  <p>however, when i load and run the following lines:</p>
  
  <pre><code>using (PAEntities analytix = new PAEntities())
             {
  ...
  }
  </code></pre>
  
  <p>i get the following error:</p>
  
  <pre><code>System.ArgumentException: The specified default EntityContainer name 'PAEntities' could not be found in the mapping and metadata information.
  </code></pre>
  
  <p>Does anyone has any idea what the cause for this error?</p>
  
  <p>This is how my connection string is configured:</p>
  
  <pre><code>&lt;add name="PAEntities" 
      connectionString="metadata=res://*/PAEntities.csdl|res://*/PAEntities.ssdl|res://*/PAEntities.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=XSXSX;Initial Catalog=PA;Integrated Security=True;MultipleActiveResultSets=True&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  </code></pre>
  
  <p>Thanks </p>