Quantcast

light fails with XmlException

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

light fails with XmlException

Scott Weinstein-2
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: light fails with XmlException

Derek Cicerone

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
Sent: Monday, September 19, 2005 7:12 AM
To: [hidden email]
Subject: [WiX-users] light fails with XmlException

 

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: light fails with XmlException

Scott Weinstein-2
Indeed that was the problem. Thanks for the help.
 


 
On 9/19/05, Derek Cicerone <[hidden email]> wrote:

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
Sent: Monday, September 19, 2005 7:12 AM
To: [hidden email]
Subject: [WiX-users] light fails with XmlException

 

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.
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://speechwiki.org/" target="_blank">http://speechwiki.org




--
Scott W.
http://speechwiki.org
Loading...