System.Data.MetadataException:无法加载指定的元数据资源 [英] System.Data.MetadataException: Unable to load the specified metadata resource

查看:652
本文介绍了System.Data.MetadataException:无法加载指定的元数据资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的连接字符串如下:

<add name="RollCallDBEntities" connectionString="metadata=res://System.Engine/RollcallNS.csdl|res://System.Engine/RollcallNS.ssdl|res://System.Engine/RollcallNS.msl;provider=Devart.Data.Oracle;provider connection string=&quot;User Id=user;Password=password;Server=127.0.0.1;Direct=True;Sid=ORCL&quot;" providerName="System.Data.EntityClient" />

我的代码如下:

using (var db= new RollCallDBEntities()) //ok
{
   var query = db.TBL_ROLLCALL.ToList(); //Unable to load the specified metadata resource.
}

我的程序集:

System.Engine

有人有什么主意吗?

这些链接没有解决我的问题:
MetadataException:无法加载指定的元数据资源
实体框架无法加载指定的元数据资源
实体框架:无法加载指定的元数据资源
无法加载指定的元数据资源

these links did not soled my problem:
MetadataException: Unable to load the specified metadata resource
entity framework Unable to load the specified metadata resource
Entity Framework: Unable to load the specified metadata resource
Unable to load the specified metadata resource

推荐答案

请参阅 http://forums.devart.com/viewtopic.php?t=22092 .

如果这没有帮助,请指定:

If this doesn't help, please specify:

  • 您正在使用ADO.NET实体数据模型(.edmx)还是 Devart实体模型(.edml)?
  • 模型文件的构建操作"属性的值
  • 模型的元数据工件处理属性的值
  • dotConnect for Oracle的内部版本号(x.xx.xxx)
  • Visual Studio的版本
  • 按照 Pawel 的建议检查资源是否嵌入其中 大会
  • are you working with ADO.NET Entity Data Model (.edmx) or Devart Entity Model (.edml)?
  • the value of your model file's Build Action property
  • the value of the Metadata Artifact Processing property of your model
  • the build number (x.xx.xxx) of your dotConnect for Oracle
  • the version of your Visual Studio
  • follow Pawel's advice to check if resources were embedded in the assembly

这篇关于System.Data.MetadataException:无法加载指定的元数据资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆