Entity framework 安装EntityFrameworkWithArchyId6.0.2时出错

Entity framework 安装EntityFrameworkWithArchyId6.0.2时出错,entity-framework,entity-framework-6,Entity Framework,Entity Framework 6,您好,我在安装EntityFramework及其ArchyID时遇到问题,我如何修复它。我安装和重新安装了几次,但它不工作 Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly `EntityFramework.PowerShell.Utility, Version=6.0.0.0, C

您好,我在安装EntityFramework及其ArchyID时遇到问题,我如何修复它。我安装和重新安装了几次,但它不工作

       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
使用“1”参数调用“LoadFrom”时出现异常:“无法加载文件或程序集`EntityFramework.PowerShell.Utility,”, Version=6.0.0.0,Culture=neutral,PublicKeyToken=6847f3395fc61b47'或其依赖项之一。强名称验证fai led。(来自HRESULT的异常:0x8013141A) 位于D:\2012\Projects\ClassLibrary1\packages\EntityFrameworkWithHierarchyId.6.0.2\tools\EntityFramework.psm1:669 char:62
+$utilityAssembly=[System.Reflection.Assembly]:LoadFrom此包显示其未签名的版本,因此请尝试使用另一个包,但它的版本不可解析。

异常消息准确地说明了错误所在-强名称验证失败。你从哪里拿到EF包的?它似乎没有签名:
无法验证强名称签名。程序集可能已被篡改,或者已延迟签名,但未使用正确的私钥完全签名。
直接从Nugget下载。