从VS2008到VS2010的转换实体使用项目给出错误175 [英] Converted Entity-using project from VS2008 to VS2010 gives Error 175

查看:88
本文介绍了从VS2008到VS2010的转换实体使用项目给出错误175的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将多组装解决方案从VS2008转换为VS2010。 它现在给出"错误175:在配置中找不到指定的商店提供商,或者无效。"在VS2010错误列表中,指定数据程序集
中的.edmx文件作为源(在第7行第442行......但是,该文件中第7行没有442列!)。  VS2008中从未发生此错误。

I converted a multi-assembly solution from VS2008 to VS2010.  It now gives the "Error 175: The specified store provider cannot be found in the configuration, or is not valid." in the VS2010 Error List, specifying the .edmx file in the data assembly as the source (on line 7 column 442...However, there aren't 442 columns on line 7 in that file!).  This error never occurred in VS2008.

如果我打开edmx文件查看图表然后关闭文件,错误将自动从错误列表中删除! (但是下次完成构建时它会重新出现。)

If I open the edmx file to view the diagram and then close the file, the error is automagically removed from the Error List! (But it reappears the next time a build is done.)

有没有人想知道在哪里找到导致这种情况的原因? 还是以前见过它?

Does anyone have any ideas where to look for what is causing this?  Or has it been seen before?

谢谢, 马特

Thanks, Matt

推荐答案

Hello Matt,

 

欢迎来到EF论坛!

 

您使用的是哪个数据库和相应的EF提供商? 
  默认情况下,VS2010转换VS2008项目并使项目定位到.NET 3.5,因此.edmx不会更新到2.0版。   

Which database and the corresponding EF provider are you using?   By default, VS2010 converts VS2008 projects and makes the projects targeted to .NET 3.5, so the .edmx will not be updated to version 2.0.  

 

< edmx:Edmx
版本 = " 1.0 "
xmlns:edmx = " http://schemas.microsoft.com/ado/2007 / 06 / edmx " >

<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">

 

< span style ="font-size:12pt"> 您是否将项目定位到.NET 4.0?  
如果是这样,.edmx将在2.0版本中。   

Do you make the project targeted to .NET 4.0?   If so, .edmx will be in version 2.0.   

 

< edmx:Edmx
Version = " 2.0 "
xmlns:edmx = " http:// schemas。 microsoft.com/ado/2008/10/edmx">

<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">

 

此外,如果您使用的是第三方EF提供商,请验证您使用的提供商支持.NET 4.0。  
然后,请检查提供程序是否已添加到.NET 4.0的 machine.config 文件中,该文件位于
/ Windows / Microsft.NET / Framework / v4.0.30319 / 。   
http://msdn.microsoft.com/en-us/library/dd0w4a2z.aspx &NBSP;&NBSP;

Besides, if you are using third party EF provider, please verify the provider you are using supports .NET 4.0.   Then, please check whether the provider is added into machine.config file of .NET 4.0, which is under the folder /Windows/Microsft.NET/Framework/v4.0.30319/.    (http://msdn.microsoft.com/en-us/library/dd0w4a2z.aspx)  

 

 

美好的一天!

< span style ="font-size:12pt">  

 

最诚挚的问候,b
Lingzhi Sun

M SDN订户支持
在论坛

如果您对我们的支持有任何反馈,请联系
msdnmg@microsoft.com

If you have any feedback on our support, please contact msdnmg@microsoft.com


这篇关于从VS2008到VS2010的转换实体使用项目给出错误175的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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