【发布时间】:2012-04-15 21:03:00
【问题描述】:
我正在使用 WS 类,当我运行应用程序时它给了我错误:
The type or namespace name 'Entity' does not exist in the namespace 'System.Data'
我参考了System.Data; 和System.Data.Entity;
但没有变化。我不断收到错误。我在 web.config 中也有这一行:
<compilation debug ="true" targetFramework="4.0"/>
【问题讨论】:
-
在 System.Data 程序集的对象浏览器中,您是否看到此实体命名空间?另请查看您是否引用了正确版本的框架库。 System.Dll 为 4.0V
-
你安装了实体框架吗?因为我相信它属于那个包。
-
你这么认为吗?但我在另一个项目中使用相同的代码,它工作正常!
-
嗯..对不起,我错了。谷歌搜索,我找到了这个链接。希望能帮助到你? forums.asp.net/t/1195753.aspx/1
-
System.Date.Entity命名空间只有在引用 EntityFramework.dll 时才有意义。
标签: c# asp.net .net web-services entity-framework-4.1