[wix-users] error LGHT0001: Illegal characters in path.

Magi, Sampattakumar S Sampattakumar.Magi at in.unisys.com
Mon Apr 25 02:04:26 PDT 2016


Excerpt from the msbuild log set to diagnostic



-----Original Message-----
From: Magi, Sampattakumar S 
Sent: Monday, April 25, 2016 2:28 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: RE: [wix-users] error LGHT0001: Illegal characters in path.

Task "Light"
		Task Parameter:
    ObjectFiles=
        obj\Debug\Product.wixobj
                ObjectPath=obj\Debug\
		Task Parameter:BindContentsFile=obj\Debug\TestSetup.wixproj.BindContentsFileListnull.txt
		Task Parameter:BindOutputsFile=obj\Debug\TestSetup.wixproj.BindOutputsFileListnull.txt
		Task Parameter:BindBuiltOutputsFile=obj\Debug\TestSetup.wixproj.BindBuiltOutputsFileListnull.txt
		Task Parameter:Cultures=null
		Task Parameter:ExtensionDirectory=C:\Program Files (x86)\WiX Toolset v3.10\bin\
		Task Parameter:OutputFile=C:\Users\magisams\documents\visual studio 2015\Projects\TestSetup\TestSetup\bin\Debug\TestSetup.msi
		Task Parameter:PdbOutputFile=C:\Users\magisams\documents\visual studio 2015\Projects\TestSetup\TestSetup\bin\Debug\TestSetup.wixpdb
		Task Parameter:ToolPath=C:\Program Files (x86)\WiX Toolset v3.10\bin\
		Task Parameter:WixProjectFile=C:\Users\magisams\documents\visual studio 2015\Projects\TestSetup\TestSetup\TestSetup.wixproj
		Command:
		C:\Program Files (x86)\WiX Toolset v3.10\bin\Light.exe -out "C:\Users\magisams\documents\visual studio 2015\Projects\TestSetup\TestSetup\bin\Debug\TestSetup.msi" -pdbout "C:\Users\magisams\documents\visual studio 2015\Projects\TestSetup\TestSetup\bin\Debug\TestSetup.wixpdb" -cultures:null -contentsfile obj\Debug\TestSetup.wixproj.BindContentsFileListnull.txt -outputsfile obj\Debug\TestSetup.wixproj.BindOutputsFileListnull.txt -builtoutputsfile obj\Debug\TestSetup.wixproj.BindBuiltOutputsFileListnull.txt -wixprojectfile "C:\Users\magisams\documents\visual studio 2015\Projects\TestSetup\TestSetup\TestSetup.wixproj" obj\Debug\Product.wixobj
		Windows Installer XML Toolset Linker version 3.10.2.2516
		Copyright (c) Outercurve Foundation. All rights reserved.
light.exe(0,0): error LGHT0001: Illegal characters in path.
		Exception Type: System.ArgumentException
		Stack Trace:
		   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
		   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
		   at System.IO.Path.GetFullPathInternal(String path)
		   at System.IO.Path.GetFullPath(String path)
		   at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
		   at Microsoft.Tools.WindowsInstallerXml.WixBinder.set_TempFilesLocation(String value)
		   at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)
		The command exited with code 1.
	Done executing task "Light" -- FAILED.
Done building target "Link" in project "TestSetup.wixproj" -- FAILED.
Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: Monday, April 25, 2016 12:38 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] error LGHT0001: Illegal characters in path.

Can you please share the error log? or if possible, please also share part
of code where error is occurring...

On 25 April 2016 at 11:28, Magi, Sampattakumar S <
Sampattakumar.Magi at in.unisys.com> wrote:

> 1. When I build the same project in other machine, it works. Only in local
> laptop it's not working.
>
> 2. I just created a simple setup project, nothing being edited , again the
> build fails.
>
> So, Do I have to look into msbuild script of the project?
>
> Regards,
> Sampat
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Farrukh Waheed
> Sent: Monday, April 25, 2016 10:47 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] error LGHT0001: Illegal characters in path.
>
> Please check your variables containing the Path value.
>
> On 24 April 2016 at 21:51, sampat magi <ssmcs060 at gmail.com> wrote:
>
> > All of sudden, facing this error. not able to build any wix setup
> project.
> >
> > 1. Repaired VS2013 and Wix 10.2
> > 2. Uninstalled both
> > 3. Installed vs 2015 and wix 10.2
> >
> > Still same error.
> >
> > Can anyone help?
> >
> > P.S:
> > 1.  Can build same Wix setup in other machines without any problems(same
> vs
> > and wix versions).
> > 2. Other kind of projects are being built properly , only wix setup is
> > failing with the error.
> >
> > Regards
> > Sampat
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> 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