2014-02-11 3 views
0

안녕하세요. 전체적으로 개체 프레임 워크를 설치하는 데 문제가 있습니다. 어떻게 해결할 수 있습니까? 몇 번이나 설치했지만 다시 설치하지는 않았지만 작동하지 않았습니다.그림 6에서 Entityframework를 설치하는 중 오류가 발생했습니다.

 Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly         `EntityFramework.PowerShell.Utility, 
     Version=6.0.0.0, Culture=neutral, PublicKeyToken=6847f3395fc61b47' or one of its   dependencies. Strong name validation fai 
led. (Exception from HRESULT: 0x8013141A)" 
At D:\ 2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:669 char:62 
+  $utilityAssembly = [System.Reflection.Assembly]::LoadFrom <<<< ((Join-Path $ToolsPath EntityFramework.PowerShell.Ut 
ility.dll)) 
    + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
    + FullyQualifiedErrorId : DotNetMethodException 

You cannot call a method on a null-valued expression. 
At D:\ 2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:670 char:50 
+  $dispatcher = $utilityAssembly.CreateInstance <<<< (
    + CategoryInfo   : InvalidOperation: (CreateInstance:String) [], RuntimeException 
    + FullyQualifiedErrorId : InvokeMethodOnNull 

Exception calling "CreateInstanceFrom" with "8" argument(s): "Could not load file or assembly 'EntityFramework.PowerShell 
, Version=6.0.0.0, Culture=neutral, PublicKeyToken=6847f3395fc61b47' or one of its dependencies. Strong name signature co 
uld not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the corr 
ect private key. (Exception from HRESULT: 0x80131045)" 
At D:\ 2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:698 char:31 
+  $domain.CreateInstanceFrom <<<< (
    + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
    + FullyQualifiedErrorId : DotNetMethodException 

Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'EntityFramework.PowerShell.Utility, 
Version=6.0.0.0, Culture=neutral, PublicKeyToken=6847f3395fc61b47' or one of its dependencies. Strong name validation fai 
led. (Exception from HRESULT: 0x8013141A)" 
At D:\ 2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:669 char:62 
+  $utilityAssembly = [System.Reflection.Assembly]::LoadFrom <<<< ((Join-Path $ToolsPath EntityFramework.PowerShell.Ut 
ility.dll)) 
    + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
    + FullyQualifiedErrorId : DotNetMethodException 

You cannot call a method on a null-valued expression. 
At D:\ 2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:670 char:50 
+  $dispatcher = $utilityAssembly.CreateInstance <<<< (
    + CategoryInfo   : InvalidOperation: (CreateInstance:String) [], RuntimeException 
    + FullyQualifiedErrorId : InvokeMethodOnNull 

Exception calling "CreateInstanceFrom" with "8" argument(s): "Could not load file or assembly 'EntityFramework.PowerShell 
, Version=6.0.0.0, Culture=neutral, PublicKeyToken=6847f3395fc61b47' or one of its dependencies. Strong name signature co 
uld not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the corr 
ect private key. (Exception from HRESULT: 0x80131045)" 
At D:\ 2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:698 char:31 
+  $domain.CreateInstanceFrom <<<< (
    + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
    + FullyQualifiedErrorId : DotNetMethodException 

이 문제를 해결하려면 어떻게해야합니까? heirarchical 데이터를 갖고 싶습니다.이 문제를 구성하는데 문제가 있습니다.

+0

예외 메시지에 무엇이 잘못 되었나요? 강력한 이름 확인에 실패했습니다. EF 패키지는 어디에서 가져 왔습니까? 그것은 서명되지 않은 것 같습니다 :'강한 이름 서명 공동 uld 확인되지 않습니다. 어셈블리가 변조되었거나 서명이 만료되었지만 Corr 개인 키로 서명되지 않았습니다. " – Pawel

+0

Nugget에서 직접 다운로드되었습니다. – user3269915

답변

관련 문제