Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm Using ASP.NET MVC

This is my Configuration Connection String but i cannot connect to the database

Exception - An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.

Inner Exception - The provider did not return a ProviderManifestToken string.
C#
Why is that ? what is the Wrong ?
 
Thank in advance!


  <connectionStrings>
    <add name="ReportReffAddContext" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\OilSystem.mdf;Integrated Security=True" />
  </connectionStrings>


What I have tried:

remove the data directory and replace the local path but no Luck
Posted
Updated 26-Feb-17 11:45am

1 solution

Google is your best resources too.

Let me Google that for you[^]

Here are some links that describe the exact same issue and might help your case
Issue : The provider did not return a ProviderManifestToken string.[^]


Error: The provider did not return a ProviderManifestToken string[^]

Also, I would suggest replace (LocalDB) with . and make sure the SQL instance service is running
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900