Entity framework connection string error
00:56Error Message
"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."Solution
<connectionStrings> <add name="EFDbContext" connectionString="Data Source=.\SQLEXPRESS; Initial Catalog=myDb; Integrated Security=SSPI;" providerName = "System.Data.SqlClient" /> </connectionStrings> <entityFramework> <defaultConnectionFactory type= "System.Data.Entity. Infrastructure.SqlConnectionFactory, EntityFramework"> <parameters> <parameter value="Data Source=.\SqlExpress; Integrated Security=True; MultipleActiveResultSets=True" /> </parameters> </defaultConnectionFactory> </entityFramework>
0 comments