Note that there are some explanatory texts on larger screens.

plurals
  1. POEF Code First - The Provider did not return a ProviderManifestToken string
    primarykey
    data
    text
    <p>I'm trying to get a very simply EF Code First example running but ran into the above problem. I've followed the advice here ( <a href="https://stackoverflow.com/questions/4741499/how-to-configure-providermanifesttoken-for-ef-code-first">How to configure ProviderManifestToken for EF Code First</a> ) but to no avail. I finally managed to get EF to create my database and tables by passing the actual connection string to the DBContext instead of the connection string name I had defined.</p> <p>Here is how I defined by connection string initially in app.config</p> <pre><code>&lt;connectionStrings&gt; &lt;add name="ProductContext" connectionString="integrated security=SSPI; data source=MYMACHINE; persist security info=False; initial catalog=Product" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt; </code></pre> <p>The name "ProductContext" matches the class ProductContext and the database Product does not exist. </p> <p>Following the advice on a previous thread I passed the connection string name to ProductContext and the base DBContext cstor. This did not work either.</p> <p>Finally, I passed the connection string above instead and everything worked, the db was created and the tables. </p> <p>I'm using SQL Server 2008 and EF 4.1. Any ideas as to what I'm doing wrong?</p> <p>Thanks,</p> <p>Ken</p> <p><strong>Update</strong></p> <p>The application is a WPF application, not a web application. I get the same exception after I remove the connectionstring from <em>app.config</em>:</p> <blockquote> <p>"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload