简体   繁体   中英

An error has occurred. : No connection string named "EmployeeDBEntities' could be found in the application config file

I am facing an error message when I try to run my ASP.Net web API.

I have two projects in a solution.
1- Class library for Entity Class Model.
2- Web API Controllers.

在此处输入图像描述

Error message when I try to run this application.

在此处输入图像描述

I could see in the Solution explorer, the app.config file is not in the startup project. So you could copy the app.config file to the EnoloyeeService project. It should work then.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM