Solved

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

Posted on 2014-01-23
6
378 Views
Last Modified: 2015-02-26
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
0
Comment
Question by:Steven O'Neill
  • 3
  • 2
6 Comments
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 100 total points
Comment Utility
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
 
LVL 2

Author Comment

by:Steven O'Neill
Comment Utility
Hi there.
Thanx for the response and yes it is. I'm using v6.0.2 (from recollection).
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Author Comment

by:Steven O'Neill
Comment Utility
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
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 400 total points
Comment Utility
It looks like its not supported. See if Add-Migration command works but doubt it would.
0
 
LVL 2

Author Comment

by:Steven O'Neill
Comment Utility
As you say that probably wont work so is there anything that I can do to add new columns to my membership system?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Word Template Mail merge with vb.net 4 37
Hide Tab Page 3 18
Get String split 5 30
Make a border less form movable 2 10
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 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

9 Experts available now in Live!

Get 1:1 Help Now