[wix-users] how to debug/locate LGHT0001 error?

Bob Arnson bob at firegiant.com
Tue Dec 1 20:39:32 PST 2015


Comment out every file and uncomment them one at a time. Or do a binary search instead.

> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Ian Bell
> Sent: Tuesday, 1 December, 2015 22:40
> To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] how to debug/locate LGHT0001 error?
> 
> Hello Rob,
> 
> Thank you for suggesting the stack trace.   However, even when the VS2015
> 'MSBuild project build output' is set to diagnostic, the stack trace also does
> not appear to provide any more information that can be used to
> determine where the error has occurred (see stack trace example below).
> In
> the simple WIX project I created and which generates the error, there are
> only four WXS files and one WXI file.   If I was not aware that a string
> definition in the WXI file included one to many double quote characters then
> the error message generate provides no real idea as to which file the error
> occurred in as well as which character produced the error.   Other than
> rebuilding a WIX project in VS2015 from scratch, are there any other
> techniques you could recommend that would help one to troubleshoot such
> a problem?
> 
> Thank you,
> 
> Ian
> 
> 
> ==========================================================
> ======
> Stack trace generated when VS2015 MSBuild project build output is set to
> diagnostic:
> 
> 5>		C:\Program Files (x86)\WiX Toolset v3.10\bin\Light.exe -out
> "C:\Users\Public\Documents\Visual Studio
> 2015\Projects\Obfuscation\Solution\Deployment\SetupProject3\bin\Debug
> \SetupP
> roject3.msi" -pdbout "C:\Users\Public\Documents\Visual Studio
> 2015\Projects\Obfuscation\Solution\Deployment\SetupProject3\bin\Debug
> \SetupP
> roject3.wixpdb" -v -cultures:null -ext "C:\Program Files (x86)\WiX Toolset
> v3.10\bin\\WixNetFxExtension.dll" -contentsfile
> obj\Debug\SetupProject3.wixproj.BindContentsFileListnull.txt -outputsfile
> obj\Debug\SetupProject3.wixproj.BindOutputsFileListnull.txt
> -builtoutputsfile
> obj\Debug\SetupProject3.wixproj.BindBuiltOutputsFileListnull.txt
> -wixprojectfile "C:\Users\Public\Documents\Visual Studio
> 2015\Projects\Obfuscation\Solution\Deployment\SetupProject3\SetupProje
> ct3.wi
> xproj" -pedantic -v obj\Debug\InstallDirectories.wixobj
> obj\Debug\InstallationFiles.wixobj obj\Debug\Product.wixobj
> obj\Debug\RegistrySettings.wixobj
> 5>		Windows Installer XML Toolset Linker version 3.10.1.2213
> 5>		Copyright (c) Outercurve Foundation. All rights reserved.
> 5>light.exe(0,0): error LGHT0001: Illegal characters in path.
> 5>		Exception Type: System.ArgumentException
> 5>		Stack Trace:
> 5>		   at System.IO.Path.CheckInvalidPathChars(String path,
> Boolean checkAdditional)
> 5>		   at System.IO.Path.IsPathRooted(String path)
> 5>		   at
> Microsoft.Tools.WindowsInstallerXml.BinderFileManager.ResolveFile(String
> source, String type, SourceLineNumberCollection sourceLineNumbers,
> BindStage
> bindStage)
> 5>		   at
> Microsoft.Tools.WindowsInstallerXml.Binder.ResolveFields(TableCollection
> tables, Hashtable cabinets, ArrayList delayedFields)
> 5>		   at
> Microsoft.Tools.WindowsInstallerXml.Binder.BindDatabase(Output output,
> String databaseFile)
> 5>		   at
> Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output
> output, String file)
> 5>		   at
> Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)
> 5>		Binder temporary directory located at
> 'C:\Users\admin\AppData\Local\Temp\4af5utmg'.
> 5>		Validator temporary directory located at
> 'C:\Users\admin\AppData\Local\Temp\mbfkjwc1'.
> 5>		The command exited with code 1.
> 5>	Done executing task "Light" -- FAILED.
> 5>Done building target "Link" in project "SetupProject3.wixproj" -- FAILED.
> 
> ==========================================================
> ======
> 
> 
> 
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Rob Mensching
> Sent: December 1, 2015 17:27
> To: ibell at instepsystems.com; WiX Toolset UsersMailing List
> Subject: Re: [wix-users] how to debug/locate LGHT0001 error?
> 
> LGHT0001 indicates a crash in the toolset. If you look at the full output
> (instead of the summary VS provides) you'll get a stack trace.
> __________________________________________________________
> ___
>  Short replies here. Complete answers over there:
> http://www.firegiant.com/
> 
> 
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Ian Bell
> Sent: Tuesday, December 1, 2015 2:20 PM
> To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] how to debug/locate LGHT0001 error?
> 
> Evening Keith,
> 
> How were you able to get Candle to generate the line number?   Are you
> running Candle from the command line or as part of the build process in
> Visual Studio?     I am building my WIX projects in VS2015 and, even when
> adding the argument -pedantic, the only information Candle generated to
> indicate a build error is:
>      1>light.exe(0,0): error LGHT0001: Illegal characters in path.
> 
> I am using the '/l*v' argument to generate the log file.  As you indicate,
> it is a challenge wading through the information.
> 
> 
> 
> Ian
> 
> __________________________________________________________
> __________
> 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