Skip to content

Fix errors caused by strong-naming assemblies #247

@craigfowler

Description

@craigfowler

It seems that when I strong-named all of the dependency assemblies, something is not quite right, because verification of these strong-names is not working under Windows (even though it is working on Mono/Linux).

Under Windows I am seeing errors like the following:

17) Test Error : Test.CSF.Zpt.Rendering.TestModel.Evaluate_gets_local_item_through_nested_models(5)
   System.TypeInitializationException : The type initializer for 'CSF.Zpt.Rendering.RenderingSettings' threw an exception.
  ----> System.TypeInitializationException : The type initializer for 'CSF.Zpt.Tales.ExpressionEvaluatorService' threw an exception.
  ----> System.IO.FileLoadException : Could not load file or assembly 'CSF.Caches, Version=1.0.1.0, Culture=neutral, PublicKeyToken=83989bab8a1a4730' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

And then when (on a Windows machine) I try verifying the strong name of that same assembly, I see this:

$ /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ SDKs/Windows/v8.1A/bin/NETFX\ 4.5.1\ Tools/x64/sn.exe -vf packages/CSF.Caches.1.0.1/lib/net45/CSF.Caches.dll

Microsoft (R) .NET Framework Strong Name Utility  Version 4.0.30319.33440
Copyright (c) Microsoft Corporation.  All rights reserved.

Failed to verify assembly -- Strong name validation failed.

So, something related to the strong-naming of the dependencies is incorrect. It looks like I may have to go and re-sign all of the dependencies .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working and should be fixedbuild/devopsRelates to the way that the project is built, packaged, tested, or similardo nextA high priority issue which must be resolved ASAP

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions