[英]vNext EF7 code first migration. Unable to load one or more of the requested types
我決定學習一個新的asp.net。 我開始寫書,做了一個模型,我想做移植,我看到了:
在控制台中:
c:\...>k ef migration add init_pracownicy -c PracownicyDbContext
然后返回:
k : System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the
LoaderExceptions property for more information.
At line:1 char:1
+ k ef
+ ~~~~
+ CategoryInfo : NotSpecified: (System.Reflecti...re information.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Ru
ntimeAssembly.get_DefinedTypes()
at Microsoft.Framework.Runtime.Common.EntryPointExecutor.TryGetEntryPoint(Assembly assembly, IServiceProvider
serviceProvider, Object& instance, MethodInfo& entryPoint)
at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider
serviceProvider)
at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)
at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)
我在Google中搜索,但未找到答案。 (也許不好看)。 請一些幫助。
這意味着加載的程序集和引用的程序集不匹配。
有多種可能的解決方案。
我安裝了VS2015 CTP。 我創建了一個新項目。 那就是我已經寫的對新項目的重寫。 一切正常。 問題解決了。 (我以前有vs2015預覽版)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.