st mnmn st mnmn - 1 month ago 6
ASP.NET (C#) Question

The type or namespace name 'Entity' does not exist in the namespace 'System.Data'

I'm using WS class and it gave me error when I run the application:

The type or namespace name 'Entity' does not exist in the namespace 'System.Data'


I have a reference to the
System.Data;
and to
System.Data.Entity;

But no changes. I keep getting the error.
I search over and over but found no solution. I have also in the web.config the line:

<compilation debug ="true" targetFramework="4.0"/>


Can anyone help me with this? it quite urgent..
Thanks in advance!

Answer

Thanks every body! I found the solution. not that I understand why but I tried this and it worked! I just had to add a reference to: System.Data.Entity.Design and don't have to write any using in the code. Thanks!