Getting SerializationException when running add-migration

autofac c# entity-framework-6


v3 80 -ConnectionStringName add-migration MyMigrations provides a serialisation for me. The member 'Autofac.Core' does not resolve the exception type. DependencyResolutionException, Autofac, Version=, Neutral Culture, PublicKeyToken=17863af14b0044da

There seem to be 2 recognised choices after looking over the solutions. The first is an ampersand in a directory name, and the second is that some of the projects are distinct. Net edition. I've made sure I don't have any ampersands and that all of my projects are running 4.6.1. I'm not sure where to go to fix this mistake right now.

Here is the verbose output. PM> v3 80 -ConnectionStringName add-migration Verbose MyMigrations using the Nop.Plugin StartUp project. Utilizing the NuGet project "Nop.Plugin," Misc.HuntNBuddies Misc.HuntNBuddies'. System.Runtime. Serialization.Serialization The member 'Autofac.Core.DependencyResolutionException,Autofac, Version=, Culture=neutral, PublicKeyToken=17863af14b0044da' at System has an exception: Type is not resolved. AppDomain. At System, do CallBack(CrossAppDomainDelegate callBackDelegate). Data.Entity.Migrations.Design.ToolingFacade. Run at System using BaseRunner (runner). Data.Entity.Migrations.Design.Tooling Facade. scaffold(String language, String rootNamespace, String migrationName, String string, Boolean ignoreChanges) at System Data.Entity.Migrations. AddMigrationCommand. At System, run Execute(String name, Boolean force, Boolean ignoreChanges). Data.Entity.Migrations. At System, use AddMigrationCommand.>c DisplayClass2..ctor>b 0(). Data.Entity.Migrations.Migrations DomainCommand. For the member "Autofac.Core.DependencyResolutionException,Autofac, Version=, Culture=neutral, PublicKeyToken=17863af14b0044da," the Execute(Action command) Type is not resolved. PM>

10/10/2016 4:26:27 PM

Popular Answer

Entity Framework's 6.2 update fixes a known problem that causes this error message. I have a workaround to identify the issue I addressed here:

SerializationException occurs in a new embedded Firebird, code-first, EF6 project.

5/23/2017 10:27:32 AM

Related Questions


Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow