c# - Enable Migrations in MVC throws File not Found Error -
i'm new using mvc, , when working through tutorials regarding migrations in visual studio 2013 appear have broken tie-in entityframework in package manager console.
i believe started when updated entityframework version 6.1.3, appears incompatible mvc controller scaffolding. rolled version 5.0.0.
when enter command enable-migrations
i following error:
exception calling "createinstancefrom" "8" argument(s): "could not load file or assembly 'entityframework, version=5.0.0.0 , culture=neutral, publickeytoken=b77a5c561934e089' or 1 of dependencies. system cannot find file specified." @ d:\ss\cap\cap_mvc_dev_2\cap_mvc\packages\entityframework.5.0.0\tools\entityframework.psm1:431 char:31 + $domain.createinstancefrom <<<< ( + categoryinfo : notspecified: (:) [], methodinvocationexception + fullyqualifiederrorid : dotnetmethodtargetinvocation
the file entityframework.psm1
exists described above, error appears in file? how $domain.createinstancefrom
missing, , from? uninstalling , reinstalling entityframework package makes no difference.
i've tried creating new projects scratch , error persists across them. uninstall/reinstall of visual studio 2013 has not resolved issue either, nor has destroying connected database , starting again empty one.
so, turns out solution similar one
entity framework code first migrations throwing error
when first attempted solution there reports of gacutil not being recognised. due environment work it not simple add gacutil universally recognised (i believe), found gacutil.exe in file system, copied lib\net45
folder referenced in linked post, , ran command
gacutil /i entityframework.dll
this has resolved problem, , no longer receive 'file not found error'
Comments
Post a Comment