ASP.NET Entity Framework Connection String: 'initial catalog' is not supported.

asp.net entity-framework mvp

Question

Hey getting the following error when running my MVP Entity Framework App :

Keyword not supported: 'initial catalog'.

My Config is as follows :

    <add name="StevenTestEntities" 
connectionString="metadata=res://*/Model.TestModel.csdl|res://*/Model.TestModel.ssdl|res://*/Model.TestModel.msl;
provider=System.Data.SqlClient;
provider connection string=Data Source=D000097;
Initial Catalog=StevenTest;
Integrated Security=True;MultipleActiveResultSets=True" 
providerName="System.Data.EntityClient" />

The is occurring on the following method

        public StevenTestEntities() : base("name=StevenTestEntities", "StevenTestEntities")

Which is called in my Entity Designer Class.

1
-2
10/31/2019 9:19:17 PM

Accepted Answer

Are you missing the &quot; from the connection string section.

Should be

<add name="StevenTestEntities" 
connectionString="metadata=res://*/Model.TestModel.csdl|res://*/Model.TestModel.ssdl|res://*/Model.TestModel.msl;
provider=System.Data.SqlClient;
provider connection string=&quot;Data Source=Data Source=D000097;
Initial Catalog=StevenTest;
Integrated Security=True;MultipleActiveResultSets=True&quot;"
providerName="System.Data.EntityClient" />

Try that out.

5
5/18/2016 4:58:38 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow