I figured it out. It seems that whatever method I used to download/extract wix38-binaries.zip onto my system triggered an OS's "security feature". Apparently all of the wix .exe and .dlls were marked as "from a remote source" as such, a protect mechanism kicks in that prevents those exes and dlls from executing. To fix the issue I had to grab the sysinternals tool, "streams". And run "streams -s -d *" in my ...\wix\bin folder.
Thanks for listening.... Streams tool... http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx forum post that guided me to streams... http://social.technet.microsoft.com/Forums/windows/en-US/147837e4-c0cd-4a81-91f6-a6b9a03ae00d/disable-this-file-comes-from-another-computer?forum=itprovistasecurity msdn link found in the MSBuild error that gave me clues the behavior was odd... http://msdn.microsoft.com/en-us/library/ee890038(v=vs.100).aspx On Tue, Feb 4, 2014 at 9:39 AM, Tony <yellowjacketl...@gmail.com> wrote: > FWIW, if I edit the test project to use my wix37-binaries folder instead > of the wix38-binaries folder. The above test project builds without > issue. So, there must be something "different" in wix 3.8 that is causing > the build exception. > > > > On Tue, Feb 4, 2014 at 9:24 AM, Tony <yellowjacketl...@gmail.com> wrote: > >> Steps taken... >> >> 1. Uninstall 3.7, reboot >> 2. Install 3.8 (votive) >> 3. using VS2012 create sample wix project >> 4. uninstall votive >> 5. extract wix38-binaries to ...\Wix\bin >> 6. edit above sample wix project per wixtoolset.org guidelines (see >> wix38test.wixproj below) >> 7. open vs2012 x86 command prompt >> 8. switch to folder that contains the above test solution file >> 9. execute "msbuild WiX38Tester.sln /p:Configuration=Release > junk.txt >> 2>&1" >> 10. msbuild "crashes", junk.txt shown below... >> >> Any ideas? >> >> ============== junk.txt (long) ===================== >> >> Microsoft (R) Build Engine version 4.0.30319.17929 >> [Microsoft .NET Framework, version 4.0.30319.17929] >> Copyright (C) Microsoft Corporation. All rights reserved. >> Building the projects in this solution one at a time. To enable parallel >> build, please add the "/m" switch. >> Build started 2/4/2014 9:10:36 AM. >> Project "C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester.sln" on node 1 (default targets). >> ValidateSolutionConfiguration: >> Building solution configuration "Release|x86". >> Project "C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester.sln" (1) is building >> "C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester\WiX38Tester.wixproj" (2) on node 1 >> (default targets). >> Compile: >> C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester\..\..\..\..\..\..\..\s2\HS-Legacy\_Dev\Curr\Dependencies\WiX\bin\candle.exe >> -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio >> 11.0\Common7\IDE\\" -d"SolutionDir=C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\\" -dSolutionExt=.sln >> -dSolutionFileName=WiX38Tester.sln -dSolutionName=WiX38Tester >> -d"SolutionPath=C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester.sln" -dConfiguration=Release >> -dOutDir=bin\Release\ -dPlatform=x86 >> -d"ProjectDir=C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester\\" -dProjectExt=.wixproj >> -dProjectFileName=WiX38Tester.wixproj -dProjectName=WiX38Tester >> -d"ProjectPath=C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester\WiX38Tester.wixproj" >> -d"TargetDir=C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester\bin\Release\\" -dTargetExt=.msi >> -dTargetFileName=WiX38Tester.msi -dTargetName=WiX38Tester >> -d"TargetPath=C:\Users\me\Documents\Visual Studio >> 2012\Projects\WiX38Tester\WiX38Tester\bin\Release\WiX38Tester.msi" -out >> obj\Release\ -arch x86 Product.wxs >> Could not load file or assembly >> 'file:///C:\s2\HS-Legacy\_Dev\Curr\Dependencies\WiX\bin\candle.exe' or one >> of its dependencies. Operation is not supported. (Exception from HRESULT: >> 0x80131515) >> 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.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.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.ExecuteToolThread(Object >> parameters) >> Unhandled Exception: System.IO.FileLoadException: Could not load file or >> assembly >> 'file:///C:\s2\HS-Legacy\_Dev\Curr\Dependencies\WiX\bin\candle.exe' or one >> of its dependencies. Operation is not supported. (Exception from HRESULT: >> 0x80131515) ---> System.NotSupportedException: An attempt was made to load >> an assembly from a network location which would have caused the assembly to >> be sandboxed in previous versions of the .NET Framework. This release of >> the .NET Framework does not enable CAS policy by default, so this load may >> be dangerous. If this load is not intended to sandbox the assembly, please >> enable the loadFromRemoteSources switch. See >> http://go.microsoft.com/fwlink/?LinkId=155569 for more information. >> --- End of inner exception stack trace --- >> 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.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.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.ExecuteToolThread(Object >> parameters) >> at System.Threading.ThreadHelper.ThreadStart_Context(Object state) >> 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) >> >> >> =======wix38test.wixproj============== >> >> <?xml version="1.0" encoding="utf-8"?> >> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns=" >> http://schemas.microsoft.com/developer/msbuild/2003"> >> <PropertyGroup> >> >> <WixToolPath>$(MSBuildThisFileDirectory)..\..\..\..\..\..\..\s2\HS-Legacy\_Dev\Curr\Dependencies\WiX\bin\</WixToolPath> >> <WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath> >> <WixTasksPath>$(WixToolPath)wixtasks.dll</WixTasksPath> >> <WixExtDir>$(WixToolPath)</WixExtDir> >> <ReferencePath>$(WixToolPath)</ReferencePath> >> <WixCATargetsPath>$(WixToolPath)sdk\wix.ca.targets</WixCATargetsPath> >> <WixSdkPath>$(WixToolPath)sdk\</WixSdkPath> >> </PropertyGroup> >> <PropertyGroup> >> <Configuration Condition=" '$(Configuration)' == '' >> ">Release</Configuration> >> <Platform Condition=" '$(Platform)' == '' ">x86</Platform> >> <ProductVersion>3.8</ProductVersion> >> <ProjectGuid>9337d04d-5829-4f09-b0d9-9ba5d19c15cc</ProjectGuid> >> <SchemaVersion>2.0</SchemaVersion> >> <OutputName>WiX38Tester</OutputName> >> <OutputType>Package</OutputType> >> </PropertyGroup> >> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == >> 'Release|x86' "> >> <OutputPath>bin\$(Configuration)\</OutputPath> >> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> >> </PropertyGroup> >> <ItemGroup> >> <Compile Include="Product.wxs" /> >> </ItemGroup> >> <Import Project="$(WixTargetsPath)" /> >> </Project> >> >> >> >> -- >> Tony >> > > > > -- > Tony > -- Tony ------------------------------------------------------------------------------ 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=121051231&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users