SP1的安装导致实体和ADO

SP1的安装导致实体和ADO

本文介绍了Visual Studio 2010 SP1的安装导致实体和ADO.NET问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装SP1后,源代码无法使用

After the install of SP1, the source code fails build with

 用户代码未处理System.ArgumentException

Message =已经添加了具有相同键的项目.

 Message=An item with the same key has already been added.

实体集具有通用字段,例如created_date,modified_date等.过去,该代码可以编译并正常运行.自SP1以来,我们 收到以上消息. 

The entity sets have common fields such as created_date, modified_date, etc.  In the past, the code compiled and ran with no issues.  Since SP1, we get the above message. 

问题2: ADO.NET实体模型和新项目"的项目模板;模板(可能是新模板)不再可用.

ISSUE#2:  the project templates for ADO.NET Entity Model and "new item" templates (supposedly new) no longer are available.

我们尝试重新安装,重新启动和安装4.1实体CTP. DS,EF,EF工具失败.我们无法卸载SP1,其他博客也不鼓励 这个.

We have attempted reinstalls, reboots and installs of the 4.1 Entity CTP DS, EF, EF Tools with not success.  We cannot uninstall SP1--other blogs also discourage this. 

其他有用的注释:整个ASP中的Telerik ASP.NET和Silverlight控件.NET和我们系统的Silverlight部分.我们使用RIA服务和Silverlight

Other helpful notes: Telerik ASP.NET and Silverlight controls throughout the ASP.NET and Silverlight portions of our system.  We use RIA services and Silverlight Toolkit also.

推荐答案

感谢您的帖子.

Thanks for your post.

针对您第一期,能否请您先提供更多有关此方面的信息? 1).您正在创建什么样的项目? 2).你什么时候得到 该错误信息? 3).最好将您收到的详细错误消息提供给我.

For your first issue, could you please first offer me more information about it? 1). What kind of project are you creating? 2). When do you get that error message? 3). It is better if you can offer me the detailed error messages you got.

针对您第二个问题,很抱歉,我无法在计算机上复制它.就像您上面提到的,我已经安装了VS2010 SP1,并且 我可以在新的模板对话框中看到ADO.NET实体数据模型.您能告诉我您的VS2010版本号吗?请转到帮助"菜单->关于Microsoft Visual Studio.

For your second issue, I am sorry that I can’t reproduce it on my machine. Just as you mentioned above, I have installed VS2010 SP1, and I can get the ADO.NET Entity Data Model shown in the new template dialog. Could you please show me your VS2010 version number? Please go to Help menu->About Microsoft Visual Studio.

> 谢谢.

Thanks.


这篇关于Visual Studio 2010 SP1的安装导致实体和ADO.NET问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 05:34