如何解决我的网络配置问题 [英] How to resolve my web configue problem
问题描述
大家好,
我正在使用实体框架工作在asp.net开发一个小项目db第一种方法在三层中每个层次的每个项目在一个解决方案中。
DAL ----一个项目,
BAL -----一个项目,
演示文稿---一个项目
所有主要项目......
我添加了一个edmx文件DAL层,并在Presentation Layer的Web配置中创建了以下连接字符串。
Hi every one,
I am developing a small project in asp.net using entity frame work db first approach In three-Tier with each project for every tier in one solution.
DAL----One Project,
BAL-----One Project,
Presentation---One Project
All Under main project......
I have added a edmx file in DAL layer, and created the following connection string in Presentation Layer's web configure.
<add name="EmployeeDb" connectionstring="metadata=res://*/DbEdmxFile.EmployeeProject.csdl|res://*/DbEdmxFile.EmployeeProject.ssdl|res://*/DbEdmxFile.EmployeeProject.msl;provider=System.Data.SqlClient;provider connection string="data source=ASTORIA-LT10\SQLEXPRESS;initial catalog=Employee;user id=sa;password=pass123;MultipleActiveResultSets=True;App=EntityFramework"" providername="System.Data.EntityClient" />
该项目运行正常,但当我从db获取一些员工记录时,以下异常即将出现无法找到元数据。
请找到解决方案
The project is running fine but when I am getting some employee records from db the following exception is coming "Unable To Find Meta data".
Please find the solution
推荐答案
浏览链接:
EF元数据问题
无法加载指定的元数据
希望它有所帮助:)
Go through the link:
EF metadata issue
unable-to-load-the-specified-metadata
Hope it helps :)
这篇关于如何解决我的网络配置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!