I had the same problem. My project was stored on a network drive. There are many security rules that apply to my computer. I moved the project to a local hard drive and the problem was resolved.
It seems that "EntityFramework.Powershell.utility.dll" is being translated to use some powershell functions, and the system prevents these calls from being made, possibly because the DLL that calls powershell is not a local file.
In your case, make sure that you do not have any security policy or system configuration that will prevent your system from performing problematic expansion from a non-local disk (EntityFramework.Powershell.utility.dll)
source share