none
Enable-Migration fails RRS feed

  • Question

  • hi,

    Enable-Migration commande fails, error message :

    Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 
    'file:******\EntityFramework.6.1.3\tools\EntityFramework.PowerShell.Utility.dll' or one of its 
    dependencies. The system cannot find the file specified."
    At C:*******\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5
    +     $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : FileNotFoundException
    i have the latest update of the entity framework package.

    Thursday, October 22, 2015 1:53 PM

All replies

  • Hi EL ATLAS Nabil,

    According to your description, I guess this error is about Entity Framework load file fail.

    So, I suggest maybe you can try to Uninstall the Entity Framework then install it with

    Package Manage Console.

    How to do it:

    To get to the Package Manager Console go to: Tools -> Library Package Manager -> Package Manager Consoler .

    Uninstall-Package EntityFramework -Force

    Then install it for your project:

    Install-Package EntityFramework

    Best Regards,

    Grady

    • Proposed as answer by Grady_Dong Thursday, October 29, 2015 8:41 AM
    Friday, October 23, 2015 5:40 AM