[wix-users] Bad Image Format Exception

Habib Salim habib at hsalim.com
Wed Nov 15 11:18:18 PST 2017


Something just occurred to me - I recently decided to sign the assembly
and the installer.
I guess just around the time I started getting this error. 
Could that be the cause?  

Although I have a workaround, I can't stop trying to find out what caused
the issue.  Can't have it flaking out when it is out in the market.



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Joseph L. Casale via wix-users
Sent: Wednesday, November 15, 2017 1:52 PM
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Cc: Joseph L. Casale <jcasale at activenetwerx.com>
Subject: Re: [wix-users] Bad Image Format Exception

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Habib Salim via wix-users
Sent: Wednesday, November 15, 2017 11:03 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Habib Salim <habib at hsalim.com>
Subject: Re: [wix-users] Bad Image Format Exception
 
> I finally figured it out.  the Custom Action project should use .Net 
> Framework 3.5 as the target framework.
> (FW3.0 and 2.0 may also work; I haven't tried).  FW4.0 and above 
> changes the runtime to 4.0 causing the BadImageFormatException.

I was paying attention to your post as I have seen that before but failed
to recall how I resolved it. I assure you the CA project does not need to
target 3.5, that simply resolved your issue somehow but it is not a
requirement.

I am currently in working in a large project with countless CAs and the
solution is targeting 4.6.2.

jlc

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/



More information about the wix-users mailing list