发生了错误。 : 在应用程序配置文件中找不到名为“EmployeeDBEntities”的连接字符串
An error has occurred. : No connection string named "EmployeeDBEntities' could be found in the application config file
当我尝试 运行 我的 ASP.Net 网络 API 时遇到错误消息。
我在一个解决方案中有两个项目。
1- Class 实体库 Class 模型。
2- 网络 API 控制器。
当我尝试 运行 这个应用程序时出现错误消息。
我可以在解决方案资源管理器中看到,app.config 文件不在启动项目中。因此,您可以将 app.config 文件复制到 EnoloyeeService 项目。然后它应该可以工作。
当我尝试 运行 我的 ASP.Net 网络 API 时遇到错误消息。
我在一个解决方案中有两个项目。
1- Class 实体库 Class 模型。
2- 网络 API 控制器。
当我尝试 运行 这个应用程序时出现错误消息。
我可以在解决方案资源管理器中看到,app.config 文件不在启动项目中。因此,您可以将 app.config 文件复制到 EnoloyeeService 项目。然后它应该可以工作。