"An attempt was made to load a program with an incorrect format" usually indicates a 64/32 bit mismatch.
Are you trying to load 64 bit candle in a 32 bit msbuild or something similar? -----Original Message----- From: Kevin Jones [mailto:krjon...@aye.net] Sent: 28 October 2010 00:19 To: wix-users@lists.sourceforge.net Subject: [WiX-users] MSBuild Wix Compile Task Throwing Exception This one has me stumped, I'm getting the following exception on a TfsBuild 2008 server from the compile wix MSBuild task: Could not load file or assembly 'file:///c:\BTemp\Rx Production Applications\RxAuditCreatorServer_Dev2\Sources\wix\candle.exe' or one of its dependencies. An attempt was made to load a program with an incorrect format. I have verified that candle.exe exists in the specified directory, and that the entire wix file set is in that directory. We can run candle in the specified directory, so it does not appear that candle.exe itself is corrupt. Any hints on to what might be going on here ? Regards, Kevin Jones ------------------------------------------------------------------------ ------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users