Advertisement
Shimmy

Untitled

Feb 16th, 2017
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Enable-Migrations -enableautomaticmigrations -ContextTypeName MyProject.Models.ApplicationDbContext -ProjectName MyProject -StartupProjectName MyProject.App -Verbose
  2. Using StartUp project 'MyProject.App'.
  3. Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject' in assembly
  4. 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=14.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
  5. At C:\Users\Shimmy\.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:718 char:5
  6. +     $domain.SetData('project', $project)
  7. +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8.     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  9.     + FullyQualifiedErrorId : SerializationException
  10.  
  11. Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject' in assembly
  12. 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=14.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
  13. At C:\Users\Shimmy\.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:719 char:5
  14. +     $domain.SetData('contextProject', $contextProject)
  15. +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16.     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  17.     + FullyQualifiedErrorId : SerializationException
  18.  
  19. System.NullReferenceException: Object reference not set to an instance of an object.
  20.    at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetPropertyValue[T](Project project, String propertyName)
  21.    at System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, Boolean useContextWorkingDirectory)
  22.    at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName)
  23.    at System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0()
  24.    at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
  25. Object reference not set to an instance of an object.
  26. PM>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement