Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Enable-Migrations -enableautomaticmigrations -ContextTypeName MyProject.Models.ApplicationDbContext -ProjectName MyProject -StartupProjectName MyProject.App -Verbose
- Using StartUp project 'MyProject.App'.
- Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject' in assembly
- 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=14.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
- At C:\Users\Shimmy\.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:718 char:5
- + $domain.SetData('project', $project)
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- + FullyQualifiedErrorId : SerializationException
- Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject' in assembly
- 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=14.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
- At C:\Users\Shimmy\.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:719 char:5
- + $domain.SetData('contextProject', $contextProject)
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- + FullyQualifiedErrorId : SerializationException
- System.NullReferenceException: Object reference not set to an instance of an object.
- 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)
- Object reference not set to an instance of an object.
- PM>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement