And off course after a long day of searching and trying, just when I posted my 
question I find the solution to this problem:

I had: 

ElementPath="/configuration/connectionStrings/ 
add[\[]@name='MyConnectionString'[\]]"

on two lines. After making it more readable to post it in my question it 
suddenly worked. Figures. Seems like posting this question gave me the solution 
(although not like I expected it). Thx anyway :)

Ruud

-----Original Message-----
Hi,

I'm creating a setup for a webapplication. I used the method described here 
(http://www.paraesthesia.com/archive/2010/07/30/how-to-consume-msdeploy-staged-web-site-output-in-a.aspx
 ) to get the right files for my webapplication. It all works great.

Now I want to make some changes in the Web.config (change the 
ConnectionString). There are plenty of examples to be found on how to do that:

<File Id="WebConfigFile" Source="SourceDir\web.config" /> <util:XmlFile 
Id="ModifyConnectionString"
             Action="setValue"
             Permanent="yes"
             ElementPath="/configuration/connectionStrings/ 
add[\[]@name='MyConnectionString'[\]]"
              Name="connectionString"
              File="[#WebConfigFile]"
              Value="[CONNECTION_STRING]"
              SelectionLanguage="XSLPattern"
              Sequence="1" />

But when I compile this I'm getting the following error:
There was an error importing table 'XmlFile' from file 
'C:\Users\username\AppData\Local\Temp\uxcq3l3y\XmlFile.idt'.

In the output I can see this
C:\Users\username\AppData\Local\Temp\uxcq3l3y\XmlFile.idt(0,0): error LGHT0136: 
There was an error importing table 'XmlFile' from file 
'C:\Users\username\AppData\Local\Temp\uxcq3l3y\XmlFile.idt'.

Can somebody tell me what I'm doing wrong? Has it got something to do with the 
way I prepare the files described in the URL above? Is it something else?

kind regards,
Ruud Pekema
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to