Hi there,
We have had the ASP.NET Core codebase setup from ASP.NET Zero.
On running the application it created all tables required using code first approach, however it did not insert the data in the table as initial data.
Due to this we are getting an error while running application as "Default language is not set".
If we try to use "update-database" to run seed method, receives following error:
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\laxman.g.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:718 char:5
$domain.SetData('project', $project)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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\laxman.g.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:719 char:5
$domain.SetData('contextProject', $contextProject)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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\laxman.g.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:720 char:5
$domain.SetData('startUpProject', $startUpProject)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
Any help in this regard is much appreciated.
Hi there,
We have got the code setup from ABP for new applicaiton and changed the connection string to point to development database server.
On first application run, it created all the require tables. However it did not setup the default tenant in the applicaiton. Due to this, I'm getting error for default language not available.
So tried to run the update-database so the Seed method will create initial data. but could not able to run it.
Initially, it specifiy that EntityFramework was not available in the EntityFramework project. Error - The EntityFramework package is not installed on project 'Progressive_care.EntityFramework'.
After adding the EntityFramework Nuget package for this project, getting new error as follow: Error - 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\laxman.g.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:718 char:5
$domain.SetData('project', $project)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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\laxman.g.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:719 char:5
$domain.SetData('contextProject', $contextProject)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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\laxman.g.nuget\packages\EntityFramework\6.1.3\tools\EntityFramework.psm1:720 char:5
$domain.SetData('startUpProject', $startUpProject)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Object reference not set to an instance of an object.
Any help in this regard is appreciated.
Thanks, Greg