4

こんにちは、WIX を使用して Web アプリケーションをインストールしようとしています。私が持っているものが正しいかどうかはわかりませんが、ログファイルに次のエラーが表示されます:

私のwxsファイル:

    <ComponentGroup Id='IISConfig'>

<Component Id='WebAppPool' Guid='5EC0510D-BE49-4FE9-9572-5695DB9BD343' Directory='INSTALLLOCATION'>
  <CreateFolder/>
  <iis:WebAppPool Id="WebAppPool" Name="DefaultAppPool" />

  <iis:WebSite Id='DefaultWebSite' Description='Default Web Site' Directory='INSTALLLOCATION' WebApplication='WebApplication'>
    <iis:WebAddress Id='AllUnassigned' Port='80' />
    <iis:WebDirProperties Id='WebDirProperties' Execute='yes'/>
  </iis:WebSite>
</Component>


<Component Id='WebVirtualDirComponent' Guid='52D0B071-0801-4B93-8C8F-F5FC92DD8D8F' Directory='INSTALLLOCATION'>
  <CreateFolder/>
  <iis:WebVirtualDir Id='WebVirtualDir' Alias='[PRODUCTNAME]' Directory='INSTALLLOCATION' WebSite='DefaultWebSite'>
    <iis:WebDirProperties Id='WebVirtualDirProperties' Execute='yes' WindowsAuthentication='yes'/>
    <iis:WebApplication Id='WebApplication' Name='[PRODUCTNAME]' WebAppPool='WebAppPool'>
      <iis:WebApplicationExtension Extension='dll' Executable='[#mod_Gsoap.dll]' CheckPath='yes' Script='yes'/>
    </iis:WebApplication>
  </iis:WebVirtualDir>
</Component>


</ComponentGroup>

私のログファイル:

MSI (s) (90:C4) [14:48:38:200]: Executing op: CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (90:AC) [14:48:38:216]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIAB38.tmp, Entrypoint: WriteIIS7ConfigChanges
WriteIIS7ConfigChanges:  Error 0x80040154: Failed to open AppHostWritableAdminManager to configure IIS7
WriteIIS7ConfigChanges:  Error 0x80040154: WriteIIS7ConfigChanges Failed.
CustomAction WriteIIS7ConfigChanges returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 14:48:38: InstallFinalize. Return value 3.

誰かが私を正しい方向に向けることができれば、私は感謝しています..:)

4

2 に答える 2

2

このエラーメッセージは、IIS構成に書き込むためのIIS7COMオブジェクトがマシンに正しく登録されていないことを意味します。問題を解決する最善の方法はわかりませんが、IISを修復(またはアンインストール/インストール)してみてください。

于 2013-03-15T06:50:19.423 に答える
0

私の場合、IIS はまったくインストールされていませんでした。ああ。

于 2016-07-27T15:44:31.030 に答える