2014-02-11 1 views
0

Привет У меня возникла проблема при установке entityframeworkwithheirarchyId, как я могу ее исправить. Я установил и переустановил несколько раз, но не работал.Ошибка при установке EntityframeworkwithheirarchyId6.0.2

 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 

Что мне делать для устранения этой проблемы? Я хочу иметь иерархические данные, поэтому проблема в настройке этого, пожалуйста, помогите мне.

+0

Сообщение об исключении говорит точно, что не так - проверка имени сильного имени не удалась. Откуда вы взяли пакет EF? Он, похоже, не подписан: «Сильная подпись имени co uld не проверяется. Возможно, сборка была подделана, или она была подписана с задержкой, но не полностью подписана с закрытым ключом corct ect. ' – Pawel

+0

Непосредственно загружается из Nugget. – user3269915

ответ

 Смежные вопросы

  • Нет связанных вопросов^_^