title: Exception : The provider did not return a ProviderManifestToken string-Entityframework
body: <p>I have write a method for inserting some data to the db using Entity framework like below which is called as a wcf service</p>
  
  <pre><code>  bool status=false;
             MyDataContext dc = new MyDataContext();
             var getData = dc.Register.FirstOrDefault(x =&gt; x.DeviceId == deviceId.Trim());
             if (getData != null)
             {
                 status = true;
             }
             return status;
  </code></pre>
  
  <p>In local it insert successfully. But after publishing  i try to insert again.At that time i got exception <strong>The provider did not return a ProviderManifestToken string</strong> How can i resolve this error?</p>
  
  <p><strong>Connectionstring</strong></p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="DataContext" connectionString="Data Source=MYNAME\SQL2008R2; Initial Catalog=MyDb; Integrated Security=True; MultipleActiveResultSets=True"
        providerName="System.Data.SqlClient" /&gt;
    &lt;/connectionStrings&gt;
  </code></pre>