ProviderManifestToken'2008'是从'2005'的不同之处在于前面遇到 [英] ProviderManifestToken '2008' is different from '2005' that was encountered earlier

查看:812
本文介绍了ProviderManifestToken'2008'是从'2005'的不同之处在于前面遇到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.NET 4和Visual Studio 2010中这个项目的工作是使用实体框架。

I'm working on ASP.NET 4 and with Visual Studio 2010. This project is using Entity Framework.

我使用MS SQL Server 2008的(错误)和他的同事2005年。

I'm using MS SQL Server 2008 (by mistake) and a colleague 2005.

我不小心clicke按钮和DB(这是SQL Server 2005中)拉着我的2008分贝的从数据库更新模式。

I've accidentally clicke the "Update model from database" button and the DB (which is sql server 2005) took my 2008 db.

所以,当我的同事试图在他的计算机上运行应用程序时,他得到这个错误:

So, when my colleague tried to run the app in his computer, he got this error:

Entities.Model.ssd​​l(2,86):错误
  0169:所有SSDL文物必须针对
  同样的供应商。该
  ProviderManifestToken'2008'是
  从那是'2005'的不同
  前面遇到过。

Entities.Model.ssdl(2,86) : error 0169: All SSDL artifacts must target the same provider. The ProviderManifestToken '2008' is different from '2005' that was encountered earlier.

我们知道这意味着什么,但我们不知道如何使应用程序接受他的模型(这是SQL Server 2005中),而不是我的(这是SQL Server 2008中)。

We know what it means, but we don't know how to make the app accept his model (which is sql server 2005) instead of mine (which is sql server 2008).

推荐答案

我遇到的这个问题,我已经在我的项目更新ProviderManifestToken在两个的有一个的文件的.edmx后,才说明问题描述<一个href=\"http://stackoverflow.com/questions/316422/using-sql-server-2008-and-sql-server-2005-and-date-time\">in这另一个问题。我拿到ProviderManifestToken不同于先前遇到错误,因为我只更新的有一个的的.edmx在我的项目文件,而不是的两个的(或所有<他们/ EM>)。

I encountered the problem described in this question only after I had updated the ProviderManifestToken in one of of two .edmx files in my project as described in this other question. I got the "ProviderManifestToken is different than was encountered earlier" error because I had only updated one .edmx file in my project, and not both (or all) of them.

这篇关于ProviderManifestToken'2008'是从'2005'的不同之处在于前面遇到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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