The connection string works well on server, but I get an error when I run in my local SQL Server.
<add name="FoodDbConString"
connectionString="data source=LAPTOP-NF1LM193\SQLEXPRESS;Database=FoodData;"
providerName="System.Data.SqlClient" />
Server connection string :
<add name="FoodDbConString"
connectionString="Server=191.167.1.280;Database=FoodData;User Id=aa;Password=alpha@123;"
providerName="System.Data.SqlClient" />
Local Connection string : (Error)
<add name="FoodDbConString"
connectionString="data source=LAPTOP-NF1LM193\SQLEXPRESS;Database=FoodData;"
providerName="System.Data.SqlClient" />
Error:
System.Data.Entity.Core.EntityException: An exception has been raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecutionStrategy.