Having issues with Enable-Migrations in VS Express 2013 for Web

I'm attempting add some additional fields to the ASPNetUsers database table and I'm running:

enable-migrations -ProjectName "OAS_Live"

but I'm getting the following error in the Package Manager Console
PM> enable-migrations -ProjectName "OAS_Live"
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[]& 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& 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, Boolean useContextWorkingDirectory)
   at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName)
   at System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0()
   at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Open in new window

Any advice would be appreciated as I can't find anything of use online (loads there but been thru stacks and still no joy).

Than guys
LVL 2
Steven O'NeillSolutions ArchitectAsked:
Who is Participating?
 
CodeCruiserCommented:
It looks like its not supported. See if Add-Migration command works but doubt it would.
0
 
Bob LearnedCommented:
If you are using "enable-migrations", I assume that you are talking about Entity Framework, so it is important to know which version you are using?
0
 
Steven O'NeillSolutions ArchitectAuthor Commented:
Hi there.
Thanx for the response and yes it is. I'm using v6.0.2 (from recollection).
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
CodeCruiserCommented:
0
 
Steven O'NeillSolutions ArchitectAuthor Commented:
It is indeed. So does that suggest there's no fix for this issue then? How would I go about adding some additional fields then?

Thanx
0
 
Steven O'NeillSolutions ArchitectAuthor Commented:
As you say that probably wont work so is there anything that I can do to add new columns to my membership system?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.