Are you trying to set the connectionString attribute ? Looking at the Wix docs for XmlFile, you specify the element in ElementPath and the attribute in Name. Try adding, Name="connectionString" and removing "/@connectionString" from ElementPath.
-----Original Message----- From: bharatj [mailto:bharat.ja...@gmail.com] Sent: 01 February 2011 17:36 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Reg: Updating connection strings in web.config Hello All, I have rectified the error by giving the correct file path in <util:XmlFile Id="UpdateConnectionString" File="fil594EFB91CA3F8AABFA244E39F388B8F8" Action="setValue" ElementPath= "//configuration/connectionStrings/add[\[]@name=’mainConn’[\]]/@connectionStr ing" Value="HOST=[DATABASESERVERNAME];SERVICE_NAME=[DATABASENAME];Integrated Security=SSPI;"/> But now I am getting the error Failed to find node I want to update the host and port details in the following xml configuration <configuration> <connectionStrings> <add name="mainConn" connectionString="Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = test) ) );Provider=OraOLEDB.Oracle; OLEDB.NET=true;PLSQLRSet=true;Password=test;User ID=test;" /> </connectionStrings> </configuration> Could any one help me out? Thanks & Regards, Bharat Jasti -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Reg-Updating-co nnection-strings-in-web-config-tp5966709p5981933.html Sent from the wix-users mailing list archive at Nabble.com. ----------------------------------------------------------------------------- - Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users