Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.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 7 WIX3.5&;IIS7-WriteIIS7ConfigChanges失败-尝试将三个web应用程序作为虚拟目录安装到默认网站时_Iis 7_Wix_Wix3.5 - Fatal编程技术网

Iis 7 WIX3.5&;IIS7-WriteIIS7ConfigChanges失败-尝试将三个web应用程序作为虚拟目录安装到默认网站时

Iis 7 WIX3.5&;IIS7-WriteIIS7ConfigChanges失败-尝试将三个web应用程序作为虚拟目录安装到默认网站时,iis-7,wix,wix3.5,Iis 7,Wix,Wix3.5,我希望有人能帮助我解决我在安装了IIS7和IIS6兼容性的Windows Server 2008上使用Wix 3.5.2519.0时遇到的问题 MSI日志文件 尝试在默认网站下定义三个虚拟web应用程序目录时遇到以下错误,如使用msiexec.exe的/log选项记录的: Action 17:05:57: StartIIS7ConfigTransaction. Starting IIS Config Transaction Action 17:05:57: RollbackIIS7ConfigT

我希望有人能帮助我解决我在安装了IIS7和IIS6兼容性的Windows Server 2008上使用Wix 3.5.2519.0时遇到的问题

MSI日志文件 尝试在默认网站下定义三个虚拟web应用程序目录时遇到以下错误,如使用
msiexec.exe
/log
选项记录的:

Action 17:05:57: StartIIS7ConfigTransaction. Starting IIS Config Transaction
Action 17:05:57: RollbackIIS7ConfigTransaction. Rolling back IIS Config Transaction
Action 17:05:57: CommitIIS7ConfigTransaction. Committing IIS Config Transaction
Action 17:05:57: ConfigureIIs7Exec. Configuring IIS
ConfigureIIs7Exec:  Error 0x800700b7: Failed get sites section
ConfigureIIs7Exec:  Error 0x800700b7: Failed to search for Website
ConfigureIIs7Exec:  Error 0x800700b7: Failed get sites section
ConfigureIIs7Exec:  Error 0x800700b7: Failed to search for Website
ConfigureIIs7Exec:  Error 0x800700b7: Failed get sites section
ConfigureIIs7Exec:  Error 0x800700b7: Failed to search for Website
Action 17:05:57: WriteIIS7ConfigChanges. Installing Config Keys and Values
WriteIIS7ConfigChanges:  Error 0x800700b7: Failed get sites section
WriteIIS7ConfigChanges:  Error 0x800700b7: Failed to read sites from config
WriteIIS7ConfigChanges:  Error 0x800700b7: Failed to configure IIS application.
WriteIIS7ConfigChanges:  Error 0x800700b7: WriteIIS7ConfigChanges Failed.
Action ended 17:05:57: InstallFinalize. Return value 3.
Action 17:05:57: Rollback. Rolling back action:
Rollback: Installing Config Keys and Values
Rollback: Configuring IIS
Rollback: Committing IIS Config Transaction
Rollback: Rolling back IIS Config Transaction
Wix组件声明 有三个网站需要安装,它们分别在
wxs
文件中声明为组件xml语法,如下所示(它们不完全相同,但非常接近):

迄今为止的总结和结论 所以这个神秘的安装错误,
0x800700b7
,似乎把一切都搞糟了

有趣的是,安装程序的早期迭代安装了fine,以前多次卸载fine。但是,现在,当尝试卸载以前的安装程序并安装新的安装程序时,卸载失败,并出现完全相同的错误,卸载日志文件的失败部分与上面的日志部分几乎相同

如果我将web应用程序二进制文件复制到所需的安装目录中,并通过IIS7管理控制台手动连接一个虚拟目录,那么一切都可以正常工作,网站会相应地响应请求

据我所知,IIS7网站和目标安装目录都是空的、空白的,并且在安装前经过消毒

关于这个问题,谷歌没有太多的报道,我想我可能只需要在盒子上重新安装IIS7,看看它是否能解决问题,但可以说这是一个核选项

有人有什么想法吗


提前感谢。

这可能有点晚了,因为您已经重建了服务器,但我遇到了完全相同的错误

错误的最终原因是apppool为我的应用程序使用了错误的.NET版本。我通过将应用程序分配给它自己的应用程序池而不是使用服务器上的默认应用程序池来解决这个问题。您可能将服务器上的默认apppool设置为应用程序所需的版本,这就是它最终工作的原因

<Directory Id='WebAppFiles' Name='WebApp'>
<!-- The component to define the Virtual Directory.-->
<Component Id="WebVirtualDirApp"
    Guid="your-guide-goes-here">
    <!-- The virtual directory we are installing. -->
    <!-- The Alias attribute is the name thata will be put into IIS.-->
    <!-- The Directory attribute is the "Physical Path" property in
         IIS and needs to tie to an ID specified in the setup. -->
    <!-- The WebSite attribute ties to a <WebSite> element in the 
         setup file. As this is an example of installing into the 
         "Default Web Site" that element is not under a component.-->
    <iis:WebAppPool Id="YourWebAppPoolId" Name="YourWebAppPool" 
             ManagedRuntimeVersion="v2.0" />
    <iis:WebVirtualDir Id="VDirApp" Alias="[VDIRNAME]" 
             Directory="WebAppFiles" WebSite="DefaultWebSite">
        <!-- Turn the Virtual Directory into a web application. -->
        <iis:WebApplication Id="TheWebApplication"  
            WebAppPool="YourWebAppPoolId"
            Name="[VDIRNAME]" />
    </iis:WebVirtualDir>
    <!-- This is pretty important. If the CreateFolder isn't there the
         WebVirtualDir won't get created as there's no files in this
         component.
         http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg03483.html -->
    <CreateFolder/>                 
</Component>
</Directory>

我最近也遇到了类似的错误;主要的区别在于,我们在“WriteIs7ConfigChanges”错误中也提到了应用程序池。大量的在线搜索(我是如何找到这篇文章的)表明,你的问题可能是由于Wix修复了各种bug造成的。但是,我们使用的是WIX3.7.1119.0,这是截至本文撰写时的最新RC,因此至少还有一种方法可以获得此错误

我最终发现,一些不相关的权限问题导致我们的安装失败,然后回滚也在其中一个步骤上悄无声息地失败,扰乱了服务器配置。我们正在插入

<system.transactions><machineSettings maxTimeout="00:30:00"/><defaultSettings timeout="00:30:00"/></system.transactions>


进入C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.CONFIG,但本应删除它的回滚步骤出错,并显示“访问被拒绝”消息。首次尝试失败后的任何安装尝试都会导致ConfigureIIS7Exec错误。进入并从machine.config手动删除事务超时设置导致“搜索网站失败”错误消失,我们的安装再次成功完成。

我也遇到了这个问题。我在安装日志中看到以下消息:

MSI (s) (B8:74) [11:11:24:699]: Invoking remote custom action. DLL: C:\Windows\Installer\MSICF14.tmp, Entrypoint: WriteIIS7ConfigChanges
WriteIIS7ConfigChanges:  Error 0x80070002: Failed get AnonymousAuthentication section for DirProp
WriteIIS7ConfigChanges:  Error 0x80070002: Failed set Authentication for DirProps
WriteIIS7ConfigChanges:  Error 0x80070002: Failed to configure IIS DirProperties.
WriteIIS7ConfigChanges:  Error 0x80070002: WriteIIS7ConfigChanges Failed.
我打开了IIS管理器,当我单击试图安装到的站点时,我得到了一个关于
/
指向无效目录的错误


我点击站点->进入右侧窗格,右键点击相关站点,“应用程序池”和“物理路径”均为空。一旦我设置了这些并应用了更改,我就可以很好地继续前进。不知道我的默认网站配置是如何损坏的,但在IIS管理器下修复它解决了问题。

您是否尝试使用管理员帐户安装它?是的,我们尝试了,事实上我们尝试了具有不同权限的多个帐户。没什么不同。我在WIX3.5和IIsExtension上也遇到过类似的问题。给WIX3.6一个尝试-这是一个很好的机会,它是固定在那里。谢谢。不幸的是,我们的最终解决方案是重建整个服务器。这就解决了问题——服务器从头到尾都有点不正常(它还需要一个genreatePublisherEvidence修复程序来进行证书验证)。自从重建以来,所有这些问题都消失了。谢谢你的回答,你是正确的,我无法确定这是否是问题的原因。我在WiX项目中没有应用程序池定义,但定义一个应用程序池很可能就是解决方案。实际上,我的配置设置与此完全相同,但仍然遇到了这个问题(如果您想知道我的解决方案是什么,请参阅我的答案。)无论哪种方式,+1,因为它仍然非常有用。。。
<system.transactions><machineSettings maxTimeout="00:30:00"/><defaultSettings timeout="00:30:00"/></system.transactions>
MSI (s) (B8:74) [11:11:24:699]: Invoking remote custom action. DLL: C:\Windows\Installer\MSICF14.tmp, Entrypoint: WriteIIS7ConfigChanges
WriteIIS7ConfigChanges:  Error 0x80070002: Failed get AnonymousAuthentication section for DirProp
WriteIIS7ConfigChanges:  Error 0x80070002: Failed set Authentication for DirProps
WriteIIS7ConfigChanges:  Error 0x80070002: Failed to configure IIS DirProperties.
WriteIIS7ConfigChanges:  Error 0x80070002: WriteIIS7ConfigChanges Failed.