Friday, December 30, 2016

The specified module '' was not loaded

In the previous POST I had shown how to

As the Error states 

Import-Module : The specified module '.\packages\EntityFramework.6.1.1\tools\EntityFramework.psd1' was not loaded

The above error occurs mostly from migrations.

Solution 1 :
Close Visual Studio
Go to ProjectDirectory\packages\EntityFramework.6.1.1\tools\
Open init.ps1 File in Notepad and replace the below line

Import-Module (Join-Path $toolsPath EntityFramework.psd1)


Import-Module '.\packages\EntityFramework.6.1.1\tools\EntityFramework.psd1'

Solution 2: Remove [ ] Braces in the path

Ex: E:\[PROJECT]\CodeFirstMigration



Solution 3: Exit Visual Studio and Re-Open

No comments:

Post a Comment