title: Getting an error from Entity Framework(type initializer exception)
body: <p>I' am getting this:</p>
  
  <blockquote>
    <p>The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.</p>
  </blockquote>
  
  <p>error in my Entity Framework.</p>
  
  <p>I read this <a href="https://stackoverflow.com/questions/17585611/the-type-initializer-for-system-data-entity-internal-appconfig-threw-an-except">Question</a> and the possible answers, however non of them worked for me. Here is my App.config file:</p>
  
  <pre><code>&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;connectionStrings&gt;
      &lt;add name="SalesReportEntities" 
           connectionString="metadata=res://*/SalesReportModel.csdl
                           |res://*/SalesReportModel.ssdl
                           |res://*/SalesReportModel.msl;
                           provider=System.Data.SqlClient;
                           provider connection string=&amp;quot;data source=.;
                                                      initial catalog=Training;
                                                      integrated security=True;
                                                      MultipleActiveResultSets=True;
                                                      App=EntityFramework&amp;quot;" 
           providerName="System.Data.EntityClient" /&gt;
    &lt;/connectionStrings&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"&gt;
        &lt;parameters&gt;
          &lt;parameter value="v11.0" /&gt;
        &lt;/parameters&gt;
      &lt;/defaultConnectionFactory&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;/configuration&gt;
  </code></pre>
  
  <p>What other possible things can cause this error?</p>