[wix-users] W10: ExecNetFx Compiling Assembly issues for Microsoft NetFx assemblies

Tobias S tobias.s1979 at gmail.com
Mon Aug 3 05:23:36 PDT 2015


Hi,

We have following issues when installing our products on some W10
Enterprise RTM Systems (Real + VMs).
- Time for NGening with errors approx 45 mins.
- NGen works sucessful on our own DLL's (not signed!)
- NGen not successful on referenced assemblies which come with the netFx
from Microsoft
- Got issue only on some W10 VMs + Real Systems
- W7 with NetFx 4.6 worked fine
- We use in WiX Config Prority="0" (WIX Default 3!)

     <netfx:NativeImage Id="ngen.$(var.Name)" Priority="0"
AppBaseDirectory="INSTALLDIR"/>

- When manually ngening only our assemblies without dependencies
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install
/NoDependencies "<OurDll.dll>" /AppBase:"C:\OurInstallDir\\"
everything works fine
- Microsoft Logs for e.g. Visual Studio indicate they use IMHO Priority="3"

- Install Packages are: Custom c# BAL with WiX 3.8 and several included MSIs


Any Ideas?

Thanks for your feedback,
Tobias



MSI (s) (BC:00) [13:07:32:862]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSIF1B9.tmp, Entrypoint: ExecNetFx
ExecNetFx:  Microsoft (R) CLR Native Image Generator - Version 4.6.79.0
ExecNetFx:  Copyright (c) Microsoft Corporation.  All rights reserved.
ExecNetFx:  1>    Compiling assembly <OurDll.dll> (CLR v4.0.30319) ...
ExecNetFx:  1>    Compiling assembly System.ComponentModel.Composition,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (CLR
v4.0.30319) ...
ExecNetFx:  1>Error compiling System.ComponentModel.Composition,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089: Windows
cannot verify the digital signature for this file. A recent hardware or
software change might have installed a file that is signed incorrectly or
damaged, or that might be malicious software from an unknown source.
(Exception from HRESULT: 0x80070241)
ExecNetFx:  1>Ngen failed to generate native code for image
System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 because of the following error: Windows
cannot verify the digital signature for this file. A recent hardware or
software change might have installed a file that is signed incorrectly or
damaged, or that might be malicious software from an unknown source.
(Exception from HRESULT: 0x80070241)
ExecNetFx:  1>Ngen will retry compilation of image
System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
ExecNetFx:  1>    Compiling assembly System.ComponentModel.Composition,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (CLR
v4.0.30319) ...
ExecNetFx:  1>Error compiling System.ComponentModel.Composition,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089: Windows
cannot verify the digital signature for this file. A recent hardware or
software change might have installed a file that is signed incorrectly or
damaged, or that might be malicious software from an unknown source.
(Exception from HRESULT: 0x80070241)
ExecNetFx:  1>Failed to generate native code for dependent image
System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 because of the following error: Windows
cannot verify the digital signature for this file. A recent hardware or
software change might have installed a file that is signed incorrectly or
damaged, or that might be malicious software from an unknown source.
(Exception from HRESULT: 0x80070241)


More information about the wix-users mailing list