System.Data.Entity Issues

Posted on 2011-10-13
Last Modified: 2012-05-12
I created a new MVC3 application in Visual Studio .NET and added, to the References, System.Data.Entity, and included "using System.Data.Entity" in a .cs file.

However, when I try to use properties/methods/etc of System.Data.Entity, nothing exists. For example, DbSet<>. When I type in System.Data.Entity. intellisense brings up nothing.

System.Data.Entity is being referenced and used in another application and it works fine there.

I've tried adding  <add namespace="System.Data.Entity"/> to the Web.config file as well as <add assembly="System.Data.Entity, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> but that didn't help.

I've tried deleting the reference and readding it and that didn't work.

Any thoughts?
Question by:infotechelg

    Author Comment

    LVL 29

    Expert Comment

    by:Kumaraswamy R

    In the include a reference
     C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll


    Author Comment

    That's already where the System.Data.Entity is pointing to:

    C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Entity.dll

    Accepted Solution

    Figured it out. Needed to install the ReferencePackage "EntityFramework".

    Author Closing Comment

    Figured it out on my own.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now