Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在IIS中向Wix注册ASP.NET站点_Asp.net_Iis_Wix_Wix3.8 - Fatal编程技术网

在IIS中向Wix注册ASP.NET站点

在IIS中向Wix注册ASP.NET站点,asp.net,iis,wix,wix3.8,Asp.net,Iis,Wix,Wix3.8,我正在尝试在IIS Express 8中注册一个网站。(安装程序也会复制整个站点。)安装程序不会完成,但会执行回滚操作。我尝试了许多不同的方法,但现在我使用以下代码: <DirectoryRef Id="INSTALLFOLDER"> <Directory Id="dir9D67924259071A1E6E852735371F1592" Name="MyWebsiteRoot"> <Component Id="IISConfiguration"

我正在尝试在IIS Express 8中注册一个网站。(安装程序也会复制整个站点。)安装程序不会完成,但会执行回滚操作。我尝试了许多不同的方法,但现在我使用以下代码:

    <DirectoryRef Id="INSTALLFOLDER">
  <Directory Id="dir9D67924259071A1E6E852735371F1592" Name="MyWebsiteRoot">
    <Component Id="IISConfiguration" Guid="DAF91C85-A210-479A-B47C-163F61D6CBB1" KeyPath="yes">
      <iis:WebAppPool Id="WebAppPoolId" Name="MyWebSiteAppPool" ManagedPipelineMode="Integrated" Identity="applicationPoolIdentity" ManagedRuntimeVersion="v4.0" />
      <iis:WebSite Id="WebSiteId" Description="MyWebSite" AutoStart="yes" StartOnInstall="yes" Directory="dir9D67924259071A1E6E852735371F1592" >
        <iis:WebAddress Id="WebAddressId" IP="localhost" Port="80" />
        <iis:WebVirtualDir Id="WebVirtualDirId" Alias="/" Directory="dir9D67924259071A1E6E852735371F1592">
          <iis:WebApplication Id="WebApplicationId" Name="My Web Site" WebAppPool="WebAppPoolId" />
        </iis:WebVirtualDir>
      </iis:WebSite>
    </Component>
    ...
我试着修复IIS,也试着只安装一个WebAppPool,但这也会回滚

更新

IISExpress似乎有问题,因为我在安装IIS时没有问题。我会看看我是否能解决这个问题

Action 11:12:08: WriteIIS7ConfigChanges. Installing Config Keys and Values
MSI (s) (44:54) [11:12:08:179]: Executing op: CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (44:64) [11:12:08:210]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI60AC.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 11:12:08: InstallFinalize. Return value 3.
...
RollbackIIS7ConfigTransaction:  Failed to restore applicationHost, not found - continuing
RollbackIIS7ConfigTransaction:  Error 0x80070003: failed to delete config backup
CustomAction RollbackIIS7ConfigTransaction returned actual error code 1603 but will be translated to success due to continue marking
Rollback: Starting IIS Config Transaction