[wix-users] Bad Image Format Exception

Habib Salim habib at hsalim.com
Wed Nov 15 16:36:24 PST 2017


Edwin,

Thanks.

I am certain that the framework exists.  It is on windows10.  And, I have 
been testing the installer on the same machine all through.





From: Edwin Castro [mailto:egcastr at gmail.com]
Sent: Wednesday, November 15, 2017 7:20 PM
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



Are you certain that the target framework for your CA is installed on the 
target system? If you are targeting 4.5 but 3.5 is installed, then it would 
make sense to get the BadImageFormatException...



--
Edwin G. Castro





On Wed, Nov 15, 2017 at 11:18 AM, Habib Salim via wix-users 
<wix-users at lists.wixtoolset.org <mailto:wix-users at lists.wixtoolset.org> > 
wrote:

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 
<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 
<mailto:wix-users at lists.wixtoolset.org> >

Cc: Joseph L. Casale <jcasale at activenetwerx.com 
<mailto: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 
<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 
<mailto:wix-users at lists.wixtoolset.org> >
Cc: Habib Salim <habib at hsalim.com <mailto: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/

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





More information about the wix-users mailing list