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

st mnmn picture st mnmn · Apr 2, 2012 · Viewed 122.1k times · Source

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 have also in the web.config the line:

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

Answer

Tony Ding picture Tony Ding · Aug 4, 2014

Right-click on the Solution from the Visual Studio Solution Explorer click the Manage Nuget packages for solution and install the EntityFramework