【问题标题】:Getting error - The version of EdmItemCollection must match the version of StoreItemCollection出现错误 - EdmItemCollection 的版本必须与 StoreItemCollection 的版本匹配
【发布时间】:2016-03-03 22:43:33
【问题描述】:

我使用带有 .Net framework 3.5 的 Visual Studio 2010 创建了 EDM 模型。 现在我已经将我的项目升级到了带有 .Net 框架 4.5 的 Visual Studio 2012。我的项目编译成功,但运行时出现以下错误。

System.Data.MappingException : Schema specified is not valid. Errors: 
error 2102: The version of EdmItemCollection must match the version of StoreItemCollection.

请帮忙。

【问题讨论】:

    标签: c# entity-framework visual-studio-2012 .net-3.5 .net-4.5


    【解决方案1】:

    请检查 EDMX xml 中的 <edmx:Edmx> 标签。在我的情况下,SSDL 和 MSL 文件在迁移后显示不同的版本。我重新生成了 MSL、SSDL 和 CSDL 文件,问题就解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-19
      • 2023-04-01
      • 1970-01-01
      • 2017-08-03
      • 1970-01-01
      • 2018-09-28
      • 2011-03-07
      • 1970-01-01
      相关资源
      最近更新 更多