title: The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception
body: <p>I have <code>ASP.Net MVC</code> site.</p>
  
  <p>Technology Stack </p>
  
  <ul>
  <li>ASP.Net 4.6</li>
  <li>C#.Net</li>
  <li>EF 6</li>
  <li>MySQL -Database</li>
  </ul>
  
  <p>While I am trying to generate the database using <code>Nuget</code> command:-</p>
  
  <pre><code>Enable-Migrations -force
  </code></pre>
  
  <p>I am getting the below exception</p>
  
  <blockquote>
    <p>The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception.</p>
  </blockquote>
  
  <p>Following things are already <strong>cross checked &amp; tried</strong> by me:-</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/19801125/the-type-initializer-for-system-data-entity-internal-appconfig-threw-an-except">The type initializer for &#39;System.Data.Entity.Internal.AppConfig&#39; threw an exception on a Sub Website</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/17585611/the-type-initializer-for-system-data-entity-internal-appconfig-threw-an-except">The type initializer for &#39;System.Data.Entity.Internal.AppConfig&#39; threw an exception</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/27146280/code-first-cant-enable-migrations">Code First can&#39;t enable migrations</a></p></li>
  </ul>
  
  <p>My App.Config:-</p>
  
  <pre><code> &lt;connectionStrings&gt;
  &lt;add name="mydbContext" providerName="MySql.Data.MySqlClient" connectionString="Server=localhost;port=8080;database=mydb;uid=root;password=" /&gt;
  &lt;/connectionStrings&gt;
  
  
  
  &lt;entityFramework&gt;
  &lt;defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory,   MySql.Data.Entity.EF6" /&gt;
  &lt;providers&gt;
    &lt;provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.8.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"&gt;&lt;/provider&gt;
  &lt;/providers&gt;
  </code></pre>
  
  <p></p>