[英]unable to create application pool in wix installer
我正在創建wix安裝,並且正在嘗試創建應用程序池並將其添加到應用程序中。 問題是在安裝過程中未創建應用程序池。 當我手動創建具有相同參數的應用程序池並在此后運行安裝時,該池已與該應用程序正確關聯。 我在啟用日志的情況下運行安裝,唯一可以發現的關於應用程序池的內容是此行:
MSI(A0:D4)[13:21:31:109]:組件:AppPool; 已安裝:空; 要求:本地; 動作:本地
因此,顯然我的應用程序池未創建,但是我無法弄清楚為什么以及如何修復它。 我的wix代碼是這樣的:
<DirectoryRef Id="INSTALLFOLDER">
<Component Id="AppPool" Guid="75BFA004-8C69-4102-B26B-BBC54F3F9448" KeyPath="yes">
<iis:WebAppPool Id="myAppPoolId"
Name="myAppPool"
Identity="applicationPoolIdentity"
ManagedPipelineMode="Integrated"
ManagedRuntimeVersion="v4.0" />
</Component>
<Component Id="InstallWebsite" Guid="1D51BC31-7F7E-4D63-8A6C-3213090F629A" KeyPath="yes">
<iis:WebVirtualDir Id="VirtualDir"
Alias="myApp"
Directory="INSTALLFOLDER"
WebSite="DefaultWebSite">
<iis:WebDirProperties Id="VirtualDirProperties"
AnonymousAccess="no"
BasicAuthentication="no"
WindowsAuthentication="yes"
DefaultDocuments="index.html" />
<iis:WebApplication Id="myAppId"
Name="myApp"
WebAppPool="myAppPoolId"/>
</iis:WebVirtualDir>
</Component>
</DirectoryRef>
有任何想法嗎?
在“ AppPool”組件中,一切似乎都很好。 添加安裝網站組件,例如:
<iis:WebSite ConfigureIfExists="yes" Id="webId" Description='DESCRIPTION' Directory='INSTALLFOLDER' AutoStart='yes' StartOnInstall='yes' >
<iis:WebAddress Id="AllUnassigned" Port="1122" />
<iis:WebApplication Id="MailboxMigrationAppPool" Name="[NAME]" WebAppPool="myAppPoolId"></iis:WebApplication>
</iis:WebSite>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.