Metadata Connection String

Heetreall

New Member
I am building a web application with ASP.NET and C# using Visual Studio 2012. I want to connect a database in my DropDownList web control with Entity Framework. I created an ADO.NET Entity Data Model that I connected with my database. I then switched to design view and added an Entity Data Source in DropDownList but when am clicking on "choose data source" and selecting the name of the entity for the named connection am getting the following error: \[quote\] The metadata specified in the connection string could not be loaded. Consider rebuilding the web project to build assemblies that may contain metadata. The following error(s) occurred: Unable to load the specified metadata resource\[/quote\]My connection string:\[code\]<connectionStrings> <add name="TelerikAcademyEntities" connectionString="metadata=res://*/TelerikAcademy.csdl|res://*/TelerikAcademy.ss??dl|res://*/TelerikAcademy.msl;provider=System.Data.SqlClient;provider connection string="data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\TelerikAcademy.mdf;integ??rated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings> \[/code\]
 
Back
Top