Sorry for the re-post

My problem is I can't seem to get the syntax correct for util:XmlFile

This is the original xpath that works properly from an xpath query.

/configuration/*[local-name()='unity' and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/*[local-name()='container'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/*[local-name()='instance'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/@value

This is the xpath I use in my .wxs

/configuration/*[\[]local-name()='unity' and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'[\]][\[]1[\]]/*[\[]local-name()='container'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'[\]][\[]1[\]]/*[\[]local-name()='instance'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'[\]][\[]1[\]]/@val

This is the file I'm processing

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="unity" 
type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, 
Microsoft.Practices.Unity.Configuration"/>
  </configSections>
  <unity xmlns="http://schemas.microsoft.com/practices/2010/unity";>
    <assembly name="F.PPortal.Data"/>
    <assembly name="F.PPortal.Domain"/>

    <namespace name="F.PPortal.Domain"/>
    <namespace name="F.PPortal.Data"/>

    <container name="F.PPortal.Portal.Web">
      <instance name="ConnectionString" type="System.String,mscorlib" 
value="Data Source=.\SQLEXPRESS;Initial Catalog=CustomerDatabase;User 
Id=sa;Password=$secure1$;"/>
      <register type="IPolicyRepository" mapTo="PolicyRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IDeviceRepository" mapTo="DeviceRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IUserRepository" mapTo="UserRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IGroupRepository" mapTo="GroupRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IAssignmentRepository" mapTo="AssignmentRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IMapRepository" mapTo="MapRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IAdministratorRepository" mapTo="AdministratorRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
      <register type="IInventoryRepository" mapTo="InventoryRepository">
        <property name="ConnectionString" dependencyName="ConnectionString"/>
      </register>
    </container>
  </unity>
</configuration>


And this is the error returned from the Installer.

Error 25532. Failed to find node: /configuration/*[local-name()='unity' and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/*[local-name()='container'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/*[local-name()='instance'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/@value 
in XML file: C:\Program Files\FullArmor\Web\web.config, system error: 
-2147467259

MSI (s) (44!BC) [10:07:39:488]: Product: FullArmor Policy Portal Server (x64) 
-- Error 25532. Failed to find node: /configuration/*[local-name()='unity' and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/*[local-name()='container'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/*[local-name()='instance'
 and 
namespace-uri()='http://schemas.microsoft.com/practices/2010/unity'][1]/@value 
in XML file: C:\Program Files\FullArmor\Web\web.config, system error: 
-2147467259

Michael Clark
Release Engineer
mcl...@fullarmor.com<mailto:mcl...@fullarmor.com>


___________________________
This email and any files transmitted with it are confidential and may contain 
Full Armor Corporation privileged and proprietary information.  These materials 
are intended solely for the use of the intended recipient. If you are not the 
intended recipient, any use, distribution, or disclosure of this transmission 
is prohibited.  If you have received this email in error, please immediately 
notify the sender and delete the message from your system.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to