title: ASP.Net c#: The specified named connection is either not found in the configuration
body: <p>I read some of the posts on this problem, and then recommended placing the code from the app.config file from my DAL into the project that loads the application.  I don't have an app.config file in my DAL and I'm not reaslly sure why or the correct syntax to build one.  Help would be appreciated!</p>
  
  <p>The error is being thrown when it hit the following method in my FCGuide.Designer.cs.  FCGuide is the name of my edmx file.  gere is the method:</p>
  
  <pre><code>    public FCGuideEntities() : base("name=FCGuideEntities", "FCGuideEntities")
      {
          this.ContextOptions.LazyLoadingEnabled = true;
          OnContextCreated();
      }
  </code></pre>
  
  <p>The complete error is:  <strong>The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.</strong></p>
  
  <p>I do have a connection string in my web.config.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
    &lt;/system.web&gt;
    &lt;connectionStrings&gt;
      &lt;add name="FCGuideEntities" connectionString="metadata=res://*/FCGuide.csdl|res://*/FCGuide.ssdl|res://*/FCGuide.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=.;attachdbfilename=|DataDirectory|\FCGuide.mdf;integrated security=True;user instance=True;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>