I want to create a setup file with the WiX Toolset. To do this I am generating a Solution using the Heat tool on a directory. The problem arises when I want to edit a web.config file from that solution.
I always get this error when compiling.
Severity Code Description Project File Line Suppression State Error ICE30: The target file 'jn9q_isq.con|web.config' is installed in '[TARGETDIR]\inetpub\vTimeEngineAPI\' by two different components on an LFN system: 'InstallWebConfigTe' and 'cmpA228938071CAE6FF139C38D6724F819B'. This breaks component reference counting. vTimeMainSetup C:\TSVtime\NewTimeAPISetup\Features\vTimeEngineFeature.wxs 40
This is my code for getting and editing the file:
<ComponentGroupRef Id="File.Generated"/>
<Component Id="InstallWebConfigTe" Guid="*">
<File Id="WebConfigTe" Name="web.config" Source="SourceDir\Web.config" Vital="yes" KeyPath="yes" />
<util:XmlFile Id="WebConfigSetDbTypeTe" Action="setValue" Permanent="yes" File="[#WebConfigTe]"
ElementPath="/configuration/Configuration/Database/add[\[]@key='ServerKind'[\]]" Name="value" Value="[DATABASE_TYPE]" />
</Component>