Error when edmx file is in a separate project

坚强是说给别人听的谎言 提交于 2019-12-06 11:21:38

Make sure the app.config is in the project which is set to be the startup project.

IF I understand correctly (I hope I do!):

You have two projects:

ApplicationServices (Startup Project)

  • Web.config

EntityContainer

  • MyEdmx.edmx

  • App.config

When the project starts up, it reads from the web.config file.

You need to make sure the connection string is in the web.config file. I usually remove the app.config from the other projects if I do not plan on using them.

Also double check ApplicationServices project references EntityContainer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!