Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

enable migration problem

$
0
0

Hi, I am not sure where to post this but will try here. I am really new at MVC and Entity Framework and have been following a book published by  Apress titled

ASP.NET MVC with Entity Framework and CSS I am stuck at enabling migrations at chapter 6. I get this result when running package manager and was hoping to know if this is a problem with Visual Studio or code. I have tried both my own code following the book and the books direct source code with no success. If this is the wrong place to post I apologize now and ask for help on where to look. Thanks

PM> add-migration ProductImages
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly
'file:///C:\Users\Volt2\Downloads\asp.net-mvc-w-entity-framework-css-master\aspnetmvcwithent_CH_05_source\BabyStore -
CH05\packages\EntityFramework.6.1.3\tools\EntityFramework.PowerShell.Utility.dll' or one of its dependencies. Operation is not supported.
(Exception from HRESULT: 0x80131515)"
At C:\Users\Volt2\Downloads\asp.net-mvc-w-entity-framework-css-master\aspnetmvcwithent_CH_05_source\BabyStore -
CH05\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 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 C:\Users\Volt2\Downloads\asp.net-mvc-w-entity-framework-css-master\aspnetmvcwithent_CH_05_source\BabyStore -
CH05\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5
+     $dispatcher = $utilityAssembly.CreateInstance(
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Exception calling "CreateInstanceFrom" with "8" argument(s): "Could not load file or assembly
'file:///C:\Users\Volt2\Downloads\asp.net-mvc-w-entity-framework-css-master\aspnetmvcwithent_CH_05_source\BabyStore -
CH05\packages\EntityFramework.6.1.3\tools\EntityFramework.PowerShell.dll' or one of its dependencies. Operation is not supported. (Exception
from HRESULT: 0x80131515)"
At C:\Users\Volt2\Downloads\asp.net-mvc-w-entity-framework-css-master\aspnetmvcwithent_CH_05_source\BabyStore -
CH05\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5
+     $domain.CreateInstanceFrom(
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileLoadException
 


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>