Hi,

I'm having a problem with using XmlFile to make changes to a configuration 
file. I'm trying to build the database appender configuration for log4net and I 
always get this error:

ExecXmlFile:  Error 0x80004005: failed to create child element: 
conversionPattern

The source for generating this element is:


    <Component Id="ComponentName" Guid="<GUID>" Directory="INSTALLFOLDER" 
KeyPath="yes">

      <util:XmlFile Id="ComponentName"

                    File="[#fil9821DC700FB1F32609450B3033F099B7]"

                    Action="createElement"

                    ElementPath="/configuration/log4net/appender [\[]@name = 
'DatabaseAppender'[\]]/parameter[\[]parameterName [\[]substring(@value, 2) = 
'thread'[\]][\]]/layout [\[]@type = 'log4net.Layout.PatternLayout'[\]]"

                    Name="conversionPattern "

                    SelectionLanguage="XPath"

                    Sequence="76" />

      <Condition>

        <![CDATA[ DATABASELOGGING = "true" ]]>

      </Condition>

    </Component>

If I change the ElementPath I get an error saying that the path can't be found, 
so XmlFile can apparently find the parent element, but isn't able to create a 
child for some reason. I can find no information on this error via Google so 
I'm hoping someone here has run into a similar problem and point me in the 
right direction

Best regards,
Kjartan Þór


Kjartan Thor 
Kjartansson<http://www.fivedegrees.nl/AboutUs/OurStaff#have-you-met:Kjartan>

Software Developer


Five Degrees
Borgartún 26

Reykjavik

Iceland


T: +354 551 0510


www.fivedegrees.nl<http://www.fivedegrees.nl/>




E-mail and attachments sent by Five Degrees employees may contain confidential 
and privileged information and are only intended for the addressee. The content 
of the message is the individual sender's responsibility, if it is not related 
to the operation of Five Degrees. If you are not the intended recipient of this 
e-mail, please notify us immediately by reply e-mail and then delete this 
message completely from your system.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to