Is E:\ local? I suspect it might be a network share. If the MSBuild process is using elevated privileges then all network shares (created when non-elevated) disappear. This only occurs with WindowsServer 2008R2 and above I believe (and I'm not sure if it's in Windows 7, but it's definitely in Windows 8 and above)
Is v3.7.1224.0 the version that you are expecting? Bevan -----Original Message----- >Date: Tue, 18 Feb 2014 16:43:27 +0100 >From: Ilir Bekteshi <ilir...@gmail.com> >Subject: [WiX-users] Heat.exe Exception with MSBuild and HeatDirectory > >I have a HeatDirectory in wixproj and it works fine when i build from VS but when i try to build with MSbuild it crashes with the error below. Does any one have any idea why is this happening? > > >Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'file:///E:\TFS\\tools\wix\3.7.1224.0\bin\Heat.exe' or one of its dependencies. An attempt was made to >load a program with an incorrect format. > at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr >pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean >suppressSecurityChecks) > at >System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName >assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean >suppressSecurityChecks) > at >System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName >assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) > at System.Reflection.RuntimeAssembly.InternalLoadFrom(String >assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) > at System.Reflection.Assembly.LoadFrom(String assemblyFile) > at >Microsoft.Tools.WindowsInstallerXml.Build.Tasks.WixToolTask.ExecuteToolThre ad(Object >parameters) > at System.Threading.ExecutionContext.RunInternal(ExecutionContext >executionContext, ContextCallback callback, Object state, Boolean >preserveSyncCtx) > at System.Threading.ExecutionContext.Run(ExecutionContext >executionContext, ContextCallback callback, Object state, Boolean >preserveSyncCtx) > at System.Threading.ExecutionContext.Run(ExecutionContext >executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart(Object obj) ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users