I am using Wix to create an application pool with an identity of a 
custom account. When I do a major upgrade the application pool identity 
is stuffed up although it should remain unchanged. The result is that 
the application pool is stopped and I get Service Unavailable message 
when I try to access the website that uses this application pool. The 
only way to solve it is to manually set the identity of the application  
pool after the upgrade is completed.

I have no idea why it happens - the identity of the application pool 
shouldn't change. The only way to prevent the installer from setting the 
application pool identity on product upgrade is to disable the 
ConfigureIIs action on product upgrade, but the side effect is that the 
web site isn't removed on uninstall.

This is the Wix code that creates the website and the application pool:

<Component Id="CreateWebSite" Guid="CBAF81F1-E6D2-430e-A5FC-08DCCC4FC8D7">
                    <CreateFolder />
                    <iis:WebSite  Id='KeyManagement' AutoStart='yes' 
Directory='Web.Ui'
                                  Description='Key Management Facility' >
                        <iis:WebAddress Id='AllUnasigned' Port='80'/>
                            <iis:WebApplication 
Id='WMISystemMonitorWebservices' Name='KMfWebAPPName'
                                                
WebAppPool='ClientApplicationPool' />
                    </iis:WebSite>

                </Component>
                <Component Id='ClientApplicationPoolComponent'
                        Guid='012C66B6-B308-4883-BE18-C99E0E90B476' 
KeyPath='yes' UninstallWhenSuperseded='yes' >
                        <iis:WebAppPool Id='ClientApplicationPool'
                        Name='Tait Key Management Facility' 
Identity='other' User='KmfWebUI' />
                </Component>
            </DirectoryRef>

=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to