title: No Entity Framework provider found ... with invariant name 'System.Data.SqlClient'
body: <p>None of the posts on here has seemed to address this specific version of my error but I may just be missing something... </p>
  
  <p>Situation:</p>
  
  <p>MVC website consumes a WCF service. Data is saved in the WCF service. Both are running </p>
  
  <pre><code>    &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
  </code></pre>
  
  <p>Both have connection string:</p>
  
  <pre><code>    &lt;add name="SiteTrackerEntities" connectionString="metadata=res://*/VisitorInformation.csdl|res://*/VisitorInformation.ssdl|res://*/VisitorInformation.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=BADLANDS\;initial catalog=SiteTracker;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  </code></pre>
  
  <p>Site runs until I actually try to save to the database in the WCF service using (errors on second line)...</p>
  
  <pre><code>SiteTrackerEntities db = new SiteTrackerEntities();
  db.Entry(visitorData).State = System.Data.Entity.EntityState.Added; 
  </code></pre>
  
  <p>I then get this lovely error:</p>
  
  <pre><code>VisitorInformation.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
  </code></pre>
  
  <ul>
  <li>Made sure that both are using the same version of EF (6.0). Check.</li>
  <li>Tried to enter the provider name in the connection string but already using <code>providerName="System.Data.EntityClient"</code> </li>
  <li>Tried removing and reinstalling EF using PM console. Check.</li>
  <li>Manually removed Ef references and readded them. Check.</li>
  <li>WCF Service has reference to Entity.Framework.SqlServer (version 6.0.0.0). Check.</li>
  <li>MVC application has connection string to the database that is only used in the WCF service (odd that it needs it but okay). Check.</li>
  </ul>
  
  <p>What am I missing?</p>