Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

ASP.net connection string error

$
0
0

Hello.

I create a empty sharepoint project and add application page on him. After that i create entity framework connection on my database and add entity dll to Package. But when i try to call stored procedure

using (var context = new DBEntities())
{
        wLGrid.DataSource = context.GetGoods(null);
        wLGrid.DataBind();
}

There are error: "No connection string named 'DBEntities' could be found in the application config file".

But app.config include connection string.


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>