This error is thrown and Light.exe crashes if <Media> tag is not present in a Package. The error itself is not very descriptive and may occur due to other reasons.
Only purpose of this mail is to inform one of them to community. I got following output in Visual Studio build window.

Microsoft (R) Windows Installer Xml Compiler version 3.0.2015.0
Copyright (C) Microsoft Corporation 2003. All rights reserved.

Application.wxs

Linking...
"C:\Program Files\Windows Installer XML\bin\light.exe" -out bin\Release\Application.msi obj\Release\Application.wixobj

Microsoft (R) Windows Installer Xml Linker version 3.0.2015.0
Copyright (C) Microsoft Corporation 2003. All rights reserved.

light.exe : error LGHT0001 : Key cannot be null.
Parameter name: key

Exception Type: System.ArgumentNullException

Stack Trace:
   at System.Collections.Hashtable.get_Item(Object key)
   at Microsoft.Tools.WindowsInstallerXml.Binder.ProcessMediaInformation (String tempDatabaseFile, Output output, FileRowCollection fileRows, ArrayList fileTransfers, TableCollection importStreamTables, MediaRowCollection mediaRows, String layoutDirectory, Boolean compressed, Boolean longNames)
   at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output, String databaseFile)
   at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args)
Build completed with errors
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to