Dynamic data IObjectContextAdapter missing link

I have a new version of VS2012 with Update 2. I am creating a new project, "Web Application for ASP.NET Dynamic Web Applications". Then I add the "ADO.NET Entity Data Model", which I create from the existing SQLServerExpress database.

However, when I go to create a solution, I get the following error:

Cannot find type name or namespace 'IObjectContextAdapter' (do you miss using directive or assembly reference?)

This seems to be declared in System.Data.Entity.Infrastructure, but I cannot find this assembly anywhere. I confirmed that I have EF5 installed for the solution, as shown in the packages.config file:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="EntityFramework" version="5.0.0" targetFramework="net45" />
</packages>

EntityFramework link properties show:

RuntimeVersion: v4.0.30319
  Version: 5.0.0.0

web.config :

  <assemblies>
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
  </assemblies>

, 5.0.0.0? . - ?

+5
1

. :

using System.Data.Entity.Infrastructure;

Global.asax.cs. , T4 .

+5

All Articles