VDProj to WiX Converter Error

Add-in Express™ Support Service
That's what is more important than anything else

VDProj to WiX Converter Error
The ' ' character, hexadecimal value 0x20, cannot be included in a name. 
Marcus Lambert




Posts: 45
Joined: 2006-10-27
Tried to convert one of my setup projects and boom.

I am using Version 1.0 Release (build 118)


Error 1 VDProj to WiX Converter error: The ' ' character, hexadecimal value 0x20, cannot be included in a name.
-------------------------------------------------------------------------------------------------------
Date and Time: 20/03/2013 17:57:32
Machine Name: KM-54
IP Address: fe80::addd:c421:7bad:9281%17
Current User: KM-54\Marcus

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
Assembly Full Name: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source: System.Xml
Exception Type: System.Xml.XmlException
Exception Message: The ' ' character, hexadecimal value 0x20, cannot be included in a name.
Exception Target Site: CheckName

---- Stack Trace ----
System.Xml.XmlDocument.CheckName(name As String)
System.Xml.dll: N 0034 (0x22) IL
System.Xml.XmlElement..ctor(name As XmlName, empty As Boolean, doc As XmlDocument)
System.Xml.dll: N 0090 (0x5A) IL
System.Xml.XmlDocument.CreateElement(prefix As String, localName As String, namespaceURI As String)
System.Xml.dll: N 0000 (0x0) IL
System.Xml.XmlDocument.CreateElement(name As String)
System.Xml.dll: N 0022 (0x16) IL
AddinExpress.Installer.VDProjToWiXConverter.CreateXmlContent()
System.Xml.dll: N 0983 (0x3D7) IL
AddinExpress.Installer.VDProjToWiXConverter.Convert(fileName As String)
System.Xml.dll: N 0055 (0x37) IL
AddinExpress.Installer.VDProjConverterAddin.Exec(commandName As String, executeOption As vsCommandExecOption, varIn As Object&, varOut As Object&, handled As Boolean&)
System.Xml.dll: N 0457 (0x1C9) IL


VDProj to WiX Converter 0 0 OnePlaceFilerSetup
Posted 20 Mar, 2013 13:02:14 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Marcus,

Please send me the .vdproj file on the support e-mail. I will try to find the problematic name with blanks.
Posted 21 Mar, 2013 03:31:51 Top
Marcus Lambert




Posts: 45
Joined: 2006-10-27
Sergey,
Thanks for the reply, I have sent the file to support.
Marcus
Posted 21 Mar, 2013 04:06:57 Top
Dmitry Kostochko


Add-in Express team


Posts: 2731
Joined: 2004-04-05
Hi Marcus,

Thank you for the sample project, it was very helpful.

We have found the cause of the error, one of configuration names in you solution has a space character. We will fix the bug in our code, in the meantime, please rename that configuration to avoid the exception.
Posted 21 Mar, 2013 05:10:36 Top
Marcus Lambert




Posts: 45
Joined: 2006-10-27
Thanks,


Also after conversion, I am unable to build the project, due to the empty description tags, but may be something you should fix.



Error 3 The Class/@Description attribute's value cannot be an empty string. If you want the value to be null or empty, simply remove the entire attribute. C:\Users\Marcus\Documents\Visual Studio 2010\Projects\KMEF\src\OnePlaceFilerSetup\obj\Debug\Harvested Output\_Redemption.com.wsx 7 1 OnePlaceFilerSetup_wix


I am using WiX 3.6 toolset
Posted 21 Mar, 2013 06:34:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Marcus,

I guess that the Heat.exe tool of WiX produces a registry entry with the Description attribute set to an empty string. Please try to use WiX 3.7. Let me know if the issue still exists.
Posted 21 Mar, 2013 09:18:13 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Marcus,

I fixed the issue with empty descriptions. Please download the 'XslFile.xslt' file and copy it to the 'XSLT' subfolder of the WiX project (you need to overwrite the existing file):
http://www.add-in-express.com/files/support/XslFile.zip
Then you need to rebuild the WiX project. Let me know if the issue still exists.
Posted 21 Mar, 2013 11:18:08 Top
Marcus Lambert




Posts: 45
Joined: 2006-10-27
Sergey,

I have found another slight error,

Error 37 The system cannot find the file 'C:\Users\Marcus\Documents\Visual Studio 2010\Projects\KMEF\src\FilingClient\bin\Release\\app.config'. C:\Users\Marcus\Documents\Visual Studio 2010\Projects\KMEF\src\OnePlaceFilerSetup\obj\Release\Harvested Output\_OnePlaceOutlookAddin.wxs 9 1 OnePlaceFilerSetup_wix

This app.config is part of my project but is a do not copy to the output directory.

Really it should respect this setting.

Marcus
Posted 22 Mar, 2013 06:53:28 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Marcus,

Usually the app.config file is automatically renamed to <project output name>.dll.config file by Visual Studio. Do you have this file in the add-in output directory?
Posted 22 Mar, 2013 08:54:24 Top
Marcus Lambert




Posts: 45
Joined: 2006-10-27
Nope I don't have it part of the output, It was added by one of my new get packages "protobuf".
Its just your tool assumes that it would be in the output dir as it obviously doesn't check the setting.
Posted 26 Mar, 2013 09:51:58 Top