MVC C# DDD Project with error on migration

-1

Good Afternoon, everyone; I'm with follows error below. I'm development a system like DDD designer patterns, however to the maker migrations is returning this error.

Someone could help me?

PM> add-migration InitialModel -force
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///Z:\16.REFACCO  - REPAIR FACTORY 
CONTROL\3.0-Refacco30\refaccoPortal\packages\EntityFramework.6.2.0\tools\EntityFramework.PowerShell.Utility.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
At Z:\16.REFACCO  - REPAIR FACTORY CONTROL\3.0-Refacco30\refaccoPortal\packages\EntityFramework.6.2.0\tools\EntityFramework.psm1:782 char:5
+     $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileLoadException

You cannot call a method on a null-valued expression.
At Z:\16.REFACCO  - REPAIR FACTORY CONTROL\3.0-Refacco30\refaccoPortal\packages\EntityFramework.6.2.0\tools\EntityFramework.psm1:783 char:5
+     $dispatcher = $utilityAssembly.CreateInstance(
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "CreateInstanceFrom" with "8" argument(s): "Could not load file or assembly 'file:///Z:\16.REFACCO  - REPAIR FACTORY 
CONTROL\3.0-Refacco30\refaccoPortal\packages\EntityFramework.6.2.0\tools\EntityFramework.PowerShell.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
At Z:\16.REFACCO  - REPAIR FACTORY CONTROL\3.0-Refacco30\refaccoPortal\packages\EntityFramework.6.2.0\tools\EntityFramework.psm1:811 char:5
+     $domain.CreateInstanceFrom(
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileLoadException
c#
entity-framework
asked on Stack Overflow Apr 24, 2019 by Edi lemos • edited Apr 24, 2019 by Amy

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0