title: No connection string could be found in the application config file - EF6
body: <p>Error:</p>
  
  <pre><code>No connection string named 'MediaRentalEntities' could be found in the application config file.
  </code></pre>
  
  <p>My config file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /&gt;
    &lt;/startup&gt;
    &lt;entityFramework&gt;
      &lt;providers&gt;
        &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
    &lt;connectionStrings&gt;
      &lt;add name="MediaRentalEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=localhost;initial catalog=MediaRental;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>As you can see connection string is clearly there, it has been automatically generated. I can run the program but it constantly shows this error on error list and i'm unable to view designer. </p>
  
  <p>I have found similar questions, but it was mostly about multiple projects, here i have only one solution and one project.</p>
  
  <p>Edit</p>
  
  <p>Constructor in DBContext:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public MediaRentalEntities()
          : base("name=MediaRentalEntities")
      {
  }
  </code></pre>