I am trying to migrate my web app from membership to ASP.Net Identity by following this tutorial. But I get this error when I execute the Enable-migrations command:
Blockquote PM> Enable-migrations System.ArgumentException: Paramètre incorrect. (Exception de HRESULT : 0x80070057 (E_INVALIDARG))
Server stack trace: à EnvDTE.Properties.Item(Object index) à System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) à System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]: à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) à EnvDTE.Properties.Item(Object index) à System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetPropertyValue[T](Project project, String propertyName) à System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, Boolean useContextWorkingDirectory) à System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName) à System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0() à System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Paramètre incorrect. (Exception de HRESULT : 0x80070057 (E_INVALIDARG))
I tried with the parameters -ProjectName and -StartUpProjectName but it does not work. I use EntityFramework 6.2.0. Need help please.
enable-migrations -ProjectName myAppandenable-migrations -StartUpProjectName myApp. myApp is the name of the project. - kst92