Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Trying to add column but its show error

Error -
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 
'file:///G:\MyBrand1\BrandHouse\packages\EntityFramework.6.4.4\tools\EntityFramework.PowerShell.Utility.dll' or one of its dependencies. The system cannot find the 
file specified."
At G:\MyBrand1\BrandHouse\packages\EntityFramework.6.2.0\tools\EntityFramework.psm1:782 char:5
+     $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileNotFoundException
 
You cannot call a method on a null-valued expression.
At G:\MyBrand1\BrandHouse\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:///G:\MyBrand1\BrandHouse\packages\EntityFramework.6.4.4\tools\EntityFramework.PowerShell.dll' or one of its dependencies. The system cannot find the file 
specified."
At G:\MyBrand1\BrandHouse\packages\EntityFramework.6.2.0\tools\EntityFramework.psm1:811 char:5
+     $domain.CreateInstanceFrom(
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileNotFoundException


What I have tried:

First I use Add-Migration InitialCreate which I used when created database
and this time
Add-Migration InitialCreate
Add-Migration ImageURL
Add-Migration ImageURL_add-Verbose
Posted
Updated 6-Jul-20 1:42am
v2
Comments
Andre Oosthuizen 6-Jul-20 4:34am    
The first lines of error tells you where the problem is - the file could not be found on your G drive with the path specified, either give the correct path or make sure the file resides in - ///G:\MyBrand1\BrandHouse\packages\EntityFramework.6.4.4\tools\EntityFramework.PowerShell.Utility.dll
yogesh vaidya 16-Jul-20 6:39am    
thanks sir,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900