Done: #2849248.

Is it possible to be fixed for WiX 3.0 as a hotfix for the released
version? 
I'm not sure it is a good idea to switch to unstable 3.5 for
production...

Or, as a alternative, can you please attach a patch that fixes this to
the artifact? I can then have my custom build based on 3.0 plus this
fix?

Thank you.

-- Yan


-----Original Message-----
From: Mike Carlson (DEV DIV) [mailto:mica...@microsoft.com] 
Sent: Wednesday, September 02, 2009 6:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

I am able to reproduce your failure - I haven't investigated in detail
yet, but it could be a bug. Go ahead and file a bug on SF against WiX
3.5, and attach your repro authoring to the bug.

Thanks,
Mike Carlson

-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Wednesday, September 02, 2009 4:44 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

Hi Mike,

I've managed to localize the problem. This looks like a bug in WiX IIS
extension to me. Here's the description.

I have several components, each contains a iis:WebSite element. This way
I specify different settings for IIS 5, 6 and 7 web sites. Each website
has the iis:WebDir element inside to point to the folder under the site
root. So, the problem is there when there are two and more web sites. It
seems that a method processing web dirs doesn't assume the install state
of the parent component.

Below is a sample project source. It is 100% reproduced for both IIS 5
and IIS 6.

Could you please confirm it is a bug?

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension";>
   <Product Id="bf1fd3b5-af21-462d-98c4-87685f7d425c"
            Name="TestProject"
            Language="1033"
            Version="1.0.0.0"
            Manufacturer="TestProject"
            UpgradeCode="3f0ca2c9-e332-4375-986f-4278261ac948">
      <Package InstallerVersion="200" Compressed="yes" />

      <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

      <PropertyRef Id="IISMAJORVERSION"/>
      <PropertyRef Id="IISMINORVERSION"/>

      <Directory Id="TARGETDIR" Name="SourceDir">
         <Directory Id="INSTALLLOCATION" Name="TestProject">
            <Directory Id="Upload" Name="upload">
               <Component Id="UploadComponent"
Guid="{8E50F0DE-622E-4268-B2F3-3ED06C07585D}">
                  <CreateFolder />
               </Component>
            </Directory>
            <Component Id="ProductComponent"
Guid="937B78FF-2FA2-4CBF-9648-602F7BA434E8">
               <File Id="SampleFile" Name="default.aspx"
Source="$(var.SourcePath)\default.aspx" />
            </Component>
            <Component Id="IIS5SiteComponent"
Guid="{C132F7A0-B429-48A5-83BC-4CBC878AEC06}" Permanent="yes">
               <Condition>IISMAJORVERSION = "#5"</Condition>
               <CreateFolder />
               <iis:WebSite Id="IIS5Site" SiteId="1" AutoStart="yes"
ConfigureIfExists="yes" Description="Default Web Site"
Directory="INSTALLLOCATION" DirProperties="SiteDirProperties"
WebApplication="App5">
                  <iis:WebAddress Id="IISSite5Address" Port="80"/>
                  <iis:WebDir Id="Upload5WebDir" Path="upload">
                     <iis:WebDirProperties Id="Upload5DirProperties"
AnonymousAccess="yes" IIsControlledPassword="yes"/>
                  </iis:WebDir>
               </iis:WebSite>
            </Component>
            <Component Id="IIS6SiteComponent"
Guid="{32DDD19A-4D4F-4544-81AE-FD174FCC91F6}">
               <Condition>IISMAJORVERSION = "#6"</Condition>
               <CreateFolder />
               <iis:WebSite Id="IIS6Site" SiteId="66666" AutoStart="yes"
Description="TestProjectSite6" Directory="INSTALLLOCATION"
DirProperties="SiteDirProperties" WebApplication="App6">
                  <iis:WebAddress Id="IISSite6Address" Port="80"/>
                  <iis:WebDir Id="Upload6WebDir" Path="upload">
                     <iis:WebDirProperties Id="Upload6DirProperties"
AnonymousAccess="yes" IIsControlledPassword="yes"/>
                  </iis:WebDir>
               </iis:WebSite>
            </Component>
         </Directory>
      </Directory>

      <iis:WebApplication Id="App5" Name="WebApplication5"
Isolation="medium" />
      <iis:WebApplication Id="App6" Name="WebApplication6" />
      <iis:WebDirProperties Id="SiteDirProperties" AnonymousAccess="yes"
WindowsAuthentication="no" IIsControlledPassword="yes"
DefaultDocuments="default.aspx"/>

      <Feature Id="ProductFeature" Title="Feature1" Level="1">
         <ComponentRef Id="ProductComponent" />
         <ComponentRef Id="IIS5SiteComponent"/>
         <ComponentRef Id="IIS6SiteComponent"/>
         <ComponentRef Id="UploadComponent"/>
      </Feature>
   </Product>
</Wix>

-- Yan

-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Tuesday, September 01, 2009 7:07 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

Sure, here you go:

   <iis:WebError ErrorCode="404" SubCode="0"
URL="/sitecore/service/notfound.aspx"/>
   <iis:MimeMap Id="XAP6_new" Extension=".xap"
Type="application/x-silverlight-app"/>
   <iis:MimeMap Id="XAML6_new" Extension=".xaml"
Type="application/xaml+xml"/>

-- Yan


-----Original Message-----
From: Mike Carlson (DEV DIV) [mailto:mica...@microsoft.com] 
Sent: Tuesday, September 01, 2009 7:04 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

Thanks - could you also paste the contents of IIS6newsite.wxi?

-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Tuesday, September 01, 2009 8:44 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

Hi Mike,

Thanks for your feedback.
Here is the excerpt from my authoring:

...
      <Component DiskId="1" Id="CreateIISSite6"
Guid="{YOURGUID-GOES-HERE-B42C-8B3BCD4613FC}" Directory="WebsiteFolder">
         <Condition>IISMAJORVERSION = "#6" AND
CREATE_IIS_SITE</Condition>
         <CreateFolder/>
         <iis:WebSite Id="NewIISSite6" SiteId="[IISSITE_ID]"
Description="[IISSITE_NAME]" AutoStart="yes" Directory="WebsiteFolder"
WebApplication="IISSiteApplication6"
DirProperties="IISRootWebDirProperties">
            <iis:WebAddress Id="NewIISSiteAddress6"
Header="[IISSITE_HEADER]" Port="[IISSITE_PORT]" />
            <iis:WebDir Id="IIS6newUploadWebDir" Path="upload"
DirProperties="IISSecureWebDirProperties" />
            <?include $(var.Includes)\IIS\IIS6newsite.wxi?>
         </iis:WebSite>
      </Component>
...

There are a number of iis:WebSite elements, but all of them are wrapped
in a component. 
Please, let me know if the snippet above doesn't contain what you were
asking for.

NOTE: it is reproduced when I'm creating a new site. If a user chooses
to use existent site, everything goes fine.

Thank you!

-- Yan


-----Original Message-----
From: Mike Carlson (DEV DIV) [mailto:mica...@microsoft.com] 
Sent: Tuesday, September 01, 2009 6:22 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

Could you post appropriate excerpts from your authoring, if possible?

Is it possible you have at least one web locator record involved here (a
web element with no associated component)? This looks exactly like the
issue where a web element is trying to install to a location found by a
web locator record, but the web locator couldn't find what it was
looking for on the local machine.

Thanks,
Mike Carlson

-----Original Message-----
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Tuesday, September 01, 2009 7:25 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Failed while processing WebDirs

I forgot to mention: I use the released version of WiX 3.0.5419.0.
Thanks in advance for any help.

-- Yan


-----Original Message-----
From: Yan Sklyarenko 
Sent: Tuesday, September 01, 2009 2:53 PM
To: wix-users@lists.sourceforge.net
Subject: Failed while processing WebDirs

Hello WiX community,

I have faced with the following error in my installation project. I have
a component, which contains a web site, which in its turn contains a
WebDir element. Hence, the plan is to create a web site on install with
WebDir.
However, when I try to install this package, it fails with the following
error:

...
ConfigureIIsExec:  A matching web object in memory was found, but the
web object in memory has no associated base
ConfigureIIsExec:  Error 0x80070002: Failed to find Web base
ConfigureIIsExec:  Error 0x80070002: Failed to get base of web for
WebDir
ConfigureIIsExec:  Error 0x80070002: failed while processing WebDirs
Error 26003. Failed while processing WebDirs.  (-2147024894         )
...

I'm sure the folder pointed by WebDir exists when the action executes. 
What is the problem here? It seems that the newly created website is not
committed to the metabase, when it is requested by the WebDir servicing
code...

Has anyone seen this before? Any workaround?

Thanks,

-- Yan


------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to