मैं MVC 4 के लिए नए हूँ और इकाई की रूपरेखा और जब मैं पैकेज प्रबंधक कंसोल से इस कमांड चलाएँ:इकाई की रूपरेखा कोड पहले प्रवासन त्रुटि
Enable-Migrations -ContextTypeName MyFirstMvcApp.Models.InventoryDbContext
जुड़ें-पथ: तर्क बाध्य नहीं किया जा सकता 'पथ' पैरामीटर के लिए क्योंकि यह शून्य है।
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\GitProjects\MyFirstMvcApp\trunk\packages\EntityFramework.6.0.0-alpha2\tools\EntityFramework.psm1:363 char:27
+ $toolsPath = Join-Path <<<< $installPath tools
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\GitProjects\MyFirstMvcApp\trunk\packages\EntityFramework.6.0.0-alpha2\tools\EntityFramework.psm1:392 char:73
+ $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-Path <<<< $toolsPath EntityFramework.PowerShell.Utility.dll))
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
You cannot call a method on a null-valued expression.
At D:\GitProjects\MyFirstMvcApp\trunk\packages\EntityFramework.6.0.0-alpha2\tools\EntityFramework.psm1:393 char:50
+ $dispatcher = $utilityAssembly.CreateInstance <<<< (
+ CategoryInfo : InvalidOperation: (CreateInstance:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\GitProjects\MyFirstMvcApp\trunk\packages\EntityFramework.6.0.0-alpha2\tools\EntityFramework.psm1:426 char:19
+ (Join-Path <<<< $runner.ToolsPath EntityFramework.PowerShell.dll),
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
मैं इसे ठीक कैसे करूँ:
मैं निम्नलिखित त्रुटि मिलती है? ध्यान दें कि मैं SP1 के साथ विजुअल स्टूडियो 2010 अल्टीमेट का उपयोग कर रहा हूं और मैंने इस link में एमवीसी 4 स्थापित किया है।
'प्रधानमंत्री> इंस्टॉल करें-पैकेज EntityFramework -पूर्व -संस्करण 5.0.0' विशेष संस्करण – nicemd
कुछ टिप्पणी के लिए: आप" प्रशासक के रूप में "मोड –
यह मेरे लिए बहुत काम किया में अपने वी.एस. चलाना चाहिए, धन्यवाद! –