entity framework - Azure Function : Enable-Migrations Exception calling “SetData” with “2” argument(s) -


getting below error after command enable-migrations -force

i using entityframework version=6.1.3

exception calling "setdata" "2" argument(s): "type 'microsoft.visualstudio.projectsystem.vs.implementation.package.automation.oaproject' in assembly      'microsoft.visualstudio.projectsystem.vs.implementation, version=15.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' not marked serializable."     @ \6.0.0\tools\entityframework.psm1:609 char:5     +     $domain.setdata('project', $project)     +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~         + categoryinfo          : notspecified: (:) [], methodinvocationexception         + fullyqualifiederrorid : serializationexception      exception calling "setdata" "2" argument(s): "type  

as far know, “exception calling "setdata" "2" argument(s) exception:” error message means don't set right project name in application.

there 2 ways solve error.

one way choosing right project name in package manager console.

enter image description here

then set right project name in package manager console.

enter image description here

another way directly pass -startupproject or -startupprojectname paramete enable-migrations command.

more details, refer answer.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -