WIX Project not building

Add-in Express™ Support Service
That's what is more important than anything else

WIX Project not building
 
OliverM




Posts: 144
Joined: 2015-08-13
Having upgraded my machine, I had to do a complete re-install of my development environment (upgraded ADX and WIX Designer as well). Now almost everything is back to normal except one thing: My setup does not build anymore.
It fails with the below exception:

------ Build started: Project: MyProjectSetup(1.0.4), Configuration: Release x86 ------
2> C:\Program Files (x86)\WiX Toolset v4.0\Bin\Heat.exe project C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\MyProject.csproj -pog Binaries -pog Satellites -projectname MyProject -sw -gg -sfrag -out "obj\x86\Release\Harvested XML\_MyProject.xml"
2> C:\Program Files (x86)\WiX Toolset v4.0\bin\candle.exe -sw1076 -sw1072 -out obj\x86\Release\ -dDebug -d"ADX_PATH=C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\\" -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\\" -dSolutionDir=C:\Users\Tom\Desktop\MyProjectSandBox\ -dSolutionExt=.sln -dSolutionFileName=MyProject.sln -dSolutionName=MyProject -dSolutionPath=C:\Users\Tom\Desktop\MyProjectSandBox\MyProject.sln -dConfiguration=Release -dOutDir=bin\Release\ -dPlatform=x86 -dProjectDir=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\MyProjectSetup\1.0.4\ -dProjectExt=.wixproj -d"ProjectFileName=MyProjectSetup(1.0.4).wixproj" -d"ProjectName=MyProjectSetup(1.0.4)" -d"ProjectPath=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\MyProjectSetup\1.0.4\MyProjectSetup(1.0.4).wixproj" -dTargetDir=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\MyProjectSetup\1.0.4\bin\Release\ -dTargetExt=.msi -d"TargetFileName=MyProjectSetup(1.0.4).msi" -d"TargetName=MyProjectSetup(1.0.4)" -d"TargetPath=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\MyProjectSetup\1.0.4\bin\Release\MyProjectSetup(1.0.4).msi" -dMyProject.Configuration=Release -d"MyProject.FullConfiguration=Release|AnyCPU" -dMyProject.Platform=AnyCPU -dMyProject.ProjectDir=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\ -dMyProject.ProjectExt=.csproj -dMyProject.ProjectFileName=MyProject.csproj -dMyProject.ProjectName=MyProject -dMyProject.ProjectPath=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\MyProject.csproj -dMyProject.TargetDir=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\bin\Release\ -dMyProject.TargetExt=.dll -dMyProject.TargetFileName=XL-MONITOR.dll -dMyProject.TargetName=XL-MONITOR -dMyProject.TargetPath=C:\Users\Tom\Desktop\MyProjectSandBox\MyMonitor\bin\Release\XL-MONITOR.dll -arch x86 -ext "C:\Program Files (x86)\Add-in Express\Designer for Visual Studio WiX Setup Projects\Bin\WiX Extensions\v4.x\VDWExtension.dll" -ext "C:\Program Files (x86)\WiX Toolset v4.0\bin\\WixNetFxExtension.dll" Product.wxs StandardUI.wxs
2>candle.exe(0,0): error CNDL0001: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
2>Done building project "MyProjectSetup(1.0.4).wixproj" -- FAILED.


I have no idea how to retrieve the LoaderExceptions property. Can you please help?
Kind regards
Oliver
Posted 04 May, 2016 04:32:22 Top
OliverM




Posts: 144
Joined: 2015-08-13
Update: There seems to be a problem with the signature file in my base ADX project(just opened a thread in the office forum). Currently my best guess is, once the signature issue is solved the setup will also build again.
Kind regards
Oliver
Posted 04 May, 2016 05:07:35 Top
OliverM




Posts: 144
Joined: 2015-08-13
Update:

Signature issue in main project is solved but setup project still fails with the same error.
I have created a new setup project but still get the same error.
I also tried instead of choosing "project output" adding the files manually with no luck.
Kind regards
Oliver
Posted 04 May, 2016 07:05:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver,

Does the adxloader.dll.manifest file contains the 'Signature' element ? Please check it in the Loader subfolder of your project.
Posted 04 May, 2016 09:11:14 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Sergey,

Yep the manifest contains the signature element. Frankly said, I meanwhile believe the issue is related to the new WIX Designer/WixToolSet.

Here are my observations:

When I first used the WixDesigner it was bundled with ToolKit version 3x. Everything worked like a charme!
- I was able to create a setup via right click on the ADX main project => Add-in Express => Create Setup.
- I was able to publish the setup project as Click-Twice project
- I was able to upload the setup to my website and downloading worked right out of the box

The new WixDesigner is bundled with ToolKit version 4.
- I tried to update my setup.wixproj to the new pathes with no luck.
- I tried to create a new Click-Twice setup via right click on the ADX main project => Add-in Express => Create Setup. The project fails to build with the following error:

Error '.', hexadecimal value 0x00, is an invalid character. MyProductSetup(1.0.4) light.exe 0



- I created a new setup via Solution => Add New Project => Wix Toolset => Setup Project. This setup builds correctly but I am unable to add it to the ADX main project in order to publish it.
Kind regards
Oliver
Posted 04 May, 2016 11:34:24 Top
OliverM




Posts: 144
Joined: 2015-08-13
Update:

Did some more testing which supports my suspicion there is some incompatibility in WixDesigner version 1.7.205.

What I did:
- Created a ADX Excel COM addin from scratch. Just followed the creation wizard, no additional code.
- Changed configuration manager to 'Release' and did a build with option Register for COM ticked.
- Started Excel and the add-in showed up under Add-ins => COM Add-ins as expected.
- Right clicked test project in order to add Click-Twice Wix setup.
- Followed the wizard and finally added a ProductCode value. Version 1.7.205 seems to add DLL-registration and project output automatically (new feature?).
- Tried to build and ended up exactely with the same error as in my actual project:

Error '.', hexadecimal value 0x00, is an invalid character. MyProductSetup(1.0.4) light.exe 0


I can send anytime the example project in case you guys can not reproduce the issue.
Kind regards
Oliver
Posted 04 May, 2016 13:22:38 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver,

I can't reproduce the issue using the steps above. Please send me a sample project with this issue.
Posted 05 May, 2016 04:19:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver,

Thank you for the project. Did you install WiX v4.0 on your PC? If so, please uninstall it completely and install the latest stable version of WiX Toolset: https://wix.codeplex.com/releases/view/619491
Let me know if the issue still exists.
Posted 05 May, 2016 06:05:06 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Sergey,

Changing the WiX Toolset to version 3.10.2 solved the issue.

Appreciate your support!
Kind regards
Oliver
Posted 05 May, 2016 07:06:30 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 May, 2016 09:20:07 Top