Is it possible your XML file has an inaccurate header? I've seen people before with an XML header like this: <?xml version="1.0" encoding="UTF-8"?> But their file isn't actually saved in UTF-8 format. This mismatch will cause MSXML (which XmlFile uses) to fail on that file, everytime - I don't remember with what error code.
Another possibility - is it possible the permissions on a parent directory of this file are extremely restrictive? Thanks, Mike Carlson -----Original Message----- From: John Cooper (Volt) [mailto:a-jc...@microsoft.com] Sent: Thursday, May 06, 2010 12:02 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] XMLFile not Finding file to Edit Even Though File is Verified There Here's the portion of the WiX: <Component Id="CDEFAULTASPX" Guid="579C6861-0A71-4018-9307-DFECEA33C362"> <File Id="FDEFAULTASPX" Name="Default.aspx" DiskId="1" Source="$(var.WebPath)\Default.aspx" /> <util:XmlFile Id="DEFAULTASPXEDIT" Action="setValue" ElementPath="//object/param[...@init='initParams'[\]]/@value" File="[INSTALLLOCATION][ProductName]\Default.aspx" SelectionLanguage="XPath" Value='<asp:Literal id="InitParam" runat="server"/>,ServicesServer=$(var.SQLServer)' /> </Component> Here's a portion of the error log: Action start 11:42:22: SchedXmlFile. Action start 11:42:22: ExecXmlFile. Action ended 11:42:22: ExecXmlFile. Return value 1. Action ended 11:42:22: SchedXmlFile. Return value 1. Action start 11:42:22: RegisterUser. Action ended 11:42:22: RegisterUser. Return value 1. Action start 11:42:22: RegisterProduct. Action ended 11:42:22: RegisterProduct. Return value 1. Action start 11:42:22: PublishFeatures. Action ended 11:42:22: PublishFeatures. Return value 1. Action start 11:42:22: PublishProduct. Action ended 11:42:22: PublishProduct. Return value 1. Action start 11:42:22: InstallFinalize. ExecXmlFile: Error 0x8007006e: failed to load XML file: F:\LookingGlass_Web\Loo kingGlass\Default.aspx Error 25531. Failed to open XML file F:\LookingGlass_Web\LookingGlass\Default.as px, system error: -2147024786 MSI (s) (74!94) [11:42:32:250]: Product: LookingGlass -- Error 25531. Failed to open XML file F:\LookingGlass_Web\LookingGlass\Default.aspx, system error: -2147 024786 Action ended 11:42:32: InstallFinalize. Return value 3. Action ended 11:42:33: INSTALL. Return value 3. I've checked and Default.aspx is indeed at F:\LookingGlass_Web\LookingGlass\Default.aspx. Any ideas for me to pursue? John M. Cooper Volt at Microsoft ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users