title: How to enable Entity Framework in a ASP.NET WebForms Website Project
body: <p>How do you enable Entity Framework in a WebForms Website Project (not Web Application Project) in Visual Studio 2012?</p>
  
  <p>Edit 1: I'm using Framework 4.0. I have installed Entity Framework 5.0 using the Package Manager Console. When executing Enable-Migrations in Package Manager Console it throws and error.</p>
  
  <pre><code>PM&gt; enable-migrations
  System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
  
  Server stack trace: 
     at EnvDTE.Properties.Item(Object index)
     at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]&amp; outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
  
  Exception rethrown at [0]: 
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
     at EnvDTE.Properties.Item(Object index)
     at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetPropertyValue[T](Project project, String propertyName)
     at System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName)
     at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName)
     at System.Data.Entity.Migrations.EnableMigrationsCommand.&lt;&gt;c__DisplayClass2.&lt;.ctor&gt;b__0()
     at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
  The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
  </code></pre>