I am trying to add and two WebSite and AppPools during installation and get
the errors listed below.

MSI (s) (68:A0) [23:32:30:219]: Executing op:
CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (68:68) [23:32:30:235]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI4D69.tmp, Entrypoint: WriteIIS7ConfigChanges
WriteIIS7ConfigChanges:  Error 0x80070002: Failed get handlers section for
DirProp
WriteIIS7ConfigChanges:  Error 0x80070002: Failed to configure IIS
DirProperties.
WriteIIS7ConfigChanges:  Error 0x80070002: WriteIIS7ConfigChanges Failed.
CustomAction WriteIIS7ConfigChanges returned actual error code 1603 (note
this may not be 100% accurate if translation happened inside sandbox)

The odd part is that if I comment out one site or the other, installation
works.  I can create the two AppPools but not the two Sites.  

Here is the code I am working with.  This is the first time I am dealing
with IIS so any tips would be appreciated.  The files in this case are added
in a separate component as they are harvested and linked at build time.

                  <Directory Id="Server1Dir" Name="server1">
                     <Component Id="Server1Component" Guid="{GUID for
server1}" KeyPath="yes">

                        <iis:WebSite Id="Server1Site"
Description="MyServer1" Directory="Server1Dir" AutoStart="yes"
DirProperties="ReadAndExecute" ConfigureIfExists="no">
                           <iis:WebAddress Id="Server1Address" Port="8000"
Secure="no" />
                           <iis:WebApplication Id="Server1App"
Name="MyServer1" Isolation="high" WebAppPool="Server1AppPool" />
                        </iis:WebSite>

                        <iis:WebAppPool Id="Server1AppPool"
Name="Server1Pool" Identity="other" RecycleMinutes="61" RecycleRequests="61"
MaxCpuUsage="61" QueueLimit="4444" MaxWorkerProcesses="5"
VirtualMemory="196608" PrivateMemory="300608" User="Server1User">
                           <iis:RecycleTime Value ="12:12"/>
                        </iis:WebAppPool>

                        <util:User Id="Server1User"
CanNotChangePassword="yes" CreateUser="yes" FailIfExists="no"
PasswordNeverExpires="yes" PasswordExpired="no" RemoveOnUninstall="yes"
UpdateIfExists="no" Disabled="no" Name="[SERVER_USER]"
Password="[SERVER_UPWD]">
                           <util:GroupRef Id="ServerUserGroup" />
                        </util:User>
                     </Component>
                  </Directory>

                  <Directory Id="Server2Dir" Name="console">
                     <Component Id="Server2Component" Guid="{GUID for server
2}" KeyPath="yes">

                        <iis:WebSite Id="Server2Site"
Description="MyServer2" Directory="Server2Dir" AutoStart="yes"
DirProperties="ReadAndExecute" ConfigureIfExists="no">
                           <iis:WebAddress Id="Server2Address" Port="8050"
Secure="no" />
                           <iis:WebApplication Id="Server2App"
Name="MyServer2" Isolation="high" WebAppPool="Server2AppPool" />
                        </iis:WebSite>

                        <iis:WebAppPool Id="Server2AppPool"
Name="Server2Pool" Identity="other" RecycleMinutes="61" RecycleRequests="61"
MaxCpuUsage="61" QueueLimit="4444" MaxWorkerProcesses="5"
VirtualMemory="196608" PrivateMemory="300608" User="Server2User">
                           <iis:RecycleTime Value ="12:12"/>
                        </iis:WebAppPool>

                        <util:User Id="Server2User"
CanNotChangePassword="yes" CreateUser="yes" FailIfExists="no"
PasswordNeverExpires="yes" PasswordExpired="no" RemoveOnUninstall="yes"
UpdateIfExists="no" Disabled="no" Name="[SERVER_USER]"
Password="[SERVER_UPWD]">
                           <util:GroupRef Id="ServerUserGroup" />
                        </util:User>
                     </Component>
                  </Directory>

Thanks
John
-- 
View this message in context: 
http://n2.nabble.com/Adding-more-than-one-web-site-and-pool-in-IIS7-tp4816097p4816097.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to