[wix-users] after build WixUtilExtension - "Strong name validation failed" on other machines

Zoli P zoli289 at googlemail.com
Tue Aug 29 08:43:47 PDT 2017


Yes, but on other machines it will not work, if I only use my only one
modified dll with the original binaries, as my build dll is not signed
(only delay-signed).
So I realized, either I run "sn" to add the public key to the ignore list
on other machines, or (and this is what I chose), change WixBuild.props to
switch off <SignAssembly> for unofficial build, and after build, I copy all
the binaries (dll+exe) from my build, not only which is affected by my code
change. So basically use my full build. This version will work on other
machines without additional settings.
SOLVED.

On Tue, Aug 29, 2017 at 3:49 PM, Bob Arnson <bob at firegiant.com> wrote:

> Local builds of WiX aren't strong-name signed. The build turns off
> strong-name validation for the WiX public key token.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Zoli P
> Sent: Monday, 28 August, 2017 04:09
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: [wix-users] after build WixUtilExtension - "Strong name
> validation failed" on other machines
>
> Hi,
>
> I had to fix a bug in the WixUtilExtension.dll source to support registry
> paths in quotes (I explained earlier on this mailing list under "heat
> generates different wxs after compiler change of our com dll" what was that
> exactly, change is in "\src\ext\UtilExtension\wixext\
> UtilFinalizeHarvesterMutator.cs").
> Then I compiled with VS2015 cmd prompt + "msbuild wix.proj"
> It works fine, I can use WIX on my machine.
>
> However, when I copy the new binaries to other machines, and try to use
> WIX there, I have this error:
>
> candle.exe : error CNDL0144 : The extension 'R:\External\Wix\WixUtilExtension.dll'
> could not be loaded because of the following reason: Could not load file or
> assembly 'WixUtilExtension, Version=3.0.0.0, Culture=neutral,
>
> PublicKeyToken=ce35f76fcda82bad' or one of its dependencies. Strong name
> validation failed. (Exception from HRESULT: 0x8013141A)
>
> I guess the msbuild did something on my machine what makes it work, and
> that is missing on the other machines? But with the original downloaded
> binaries, no such issue.
> Why I have this error?
> Do you know what is the best + quickest way to fix it? I could maybe try
> to switch off strong name validation for this file with "sn"...but maybe a
> better solution?
>
> Thanks, Zoli
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list