asp.net - Adding multiple Web.config files in separate directories to WIX installer -


i creating wix installer package asp.net application, getting error when trying add multiple web.config files though located in different directories.

the code have far looks this:

<directory id="installlocation" name="site" >   <component id="web.config" guid="f9d6c6e5-887e-4d90-bdeb-5d16aaa8f194">     <file diskid="1" keypath="yes" source="$(var.solutiondir)\publish\web.config" />   </component>   <directory id="account.dir" name="account">     <component id="account.web.config" guid="53fc1820-3add-41c0-92d6-9a66348c33a4">       <file diskid="1" keypath="yes" source="$(var.solutiondir)\publish\account\web.config" />     </component>   </directory> </directory>  <feature id="defaultfeature" configurabledirectory="targetdir" level="1">   <componentref id="web.config"/>   <componentref id="account.web.config"/> <feature> 

the error message i'm getting is: "duplicate symbol 'file:web.config' found. typically means id duplicated. check make sure identifiers of given type (file, component, feature) unique."

as far know can't install same file twice using wix, these different files in different locations have same name. when rename 1 of files installer works expected doesn't since both files need named web.config. don't think ids or guids problem since unique , changing file name works.

does have ideas?

the error message correct doesn't acknowledge id being generated wix. reduce clutter, successive versions of wix have increasingly allowing attributes omitted since don't need referenced in other parts of authoring.

per schema documentation file/@id must unique.

the unique identifier file element. if omit id, defaults file name portion of source attribute, if specified. may referenced property specifying [#value].

you need id attribute 1 or both of file elements assigned , generated file/@id elements unique.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -