I'm having a problem with light that I simply do not understand.
Here is the output from my build:
[exec] Starting 'candle.exe ( -nologo -pedantic:legendary Product.wxs Components.wxs)' in 'C:\SF\natlink\WixSetup'
[exec] Starting 'light.exe ( -nologo -pedantic:legendary -v0 Product.wixobj Components.wixobj C:\DevTools\Wix\ui\wixui_featuretree.wixlib -out NatLink.msi)' in 'C:\SF\natlink\WixSetup'
[exec] Updating file information. [exec] light.exe : error LGHT0001 : The data at the root level is invalid. Line 1, position 1. [exec] [exec] Exception Type: System.Xml.XmlException [exec] [exec] Stack Trace: [exec] at System.Xml.XmlTextReader.ParseRoot() [exec] at System.Xml.XmlTextReader.Read() [exec] at System.Xml.XmlValidatingReader.ReadWithCollectTextToken() [exec] at System.Xml.XmlValidatingReader.Read () [exec] at System.Xml.XPath.XPathDocument.Load(XmlReader reader) [exec] at System.Xml.XPath.XPathDocument.Init(XmlReader reader) [exec] at System.Xml.XPath.XPathDocument..ctor(String uri) [exec] at Microsoft.Tools.WindowsInstallerXml.Binder.UpdateFileInformation(Output output) [exec] at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output) [exec] at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run (String[] args) when I look at the files Product.wixobj Components.wixobj, they appear to be valid XML.
I get this problem on both builds 2.0.3309.0 and 2.0.3220.0.
Any clue on what could be causing this? -- Scott W. http://speechwiki.org |
This is a total guess (without seeing your
files), but I’m guessing you are using the File/@Assembly=”win32”
attribute somewhere. This attribute triggers the binder to attempt to load an
xml manifest file in light. I think I’ve seen that error before when the
file declared as the manifest isn’t actually xml. I’m not sure
what the exact fix will be for you: remove the attribute or ensure the manifest
is actually the xml file. There is a least one bug here though: wix
tools should never display a stack trace. Please open a bug with the stack
trace below and we’ll add a more intelligible error for this scenario with
the information above so hopefully no one else will be confused by this issue
again. Thanks! Derek From: [hidden email]
[mailto:[hidden email]] On Behalf Of Scott Weinstein I'm having a problem with light that I simply do not understand. Here is the output from my build: [exec] Starting 'candle.exe ( -nologo
-pedantic:legendary Product.wxs Components.wxs)' in 'C:\SF\natlink\WixSetup' [exec] Starting 'light.exe ( -nologo
-pedantic:legendary -v0 Product.wixobj Components.wixobj
C:\DevTools\Wix\ui\wixui_featuretree.wixlib -out NatLink.msi)' in
'C:\SF\natlink\WixSetup' when I look at the files Product.wixobj Components.wixobj, they appear
to be valid XML. I get this problem on both builds 2.0.3309.0 and 2.0.3220.0. Any clue on what could be causing this?
|
Indeed that was the problem. Thanks for the help.
I've entered a bug report at http://sourceforge.net/tracker/index.php?func=detail&aid=1295498&group_id=105970&atid=642714
On 9/19/05, Derek Cicerone <[hidden email]> wrote:
-- Scott W. http://speechwiki.org |
Free forum by Nabble | Edit this page |