iis-7 – Wix 3.5和IIS7 – WriteIIS7ConfigChanges失败 – 尝试将三个Web应用程序作为虚拟目录安装到默认网站

iis-7 – Wix 3.5和IIS7 – WriteIIS7ConfigChanges失败 – 尝试将三个Web应用程序作为虚拟目录安装到默认网站,第1张

概述我希望有人可以帮助我解决我在 Windows Server 2008上使用Wix 3.5.2519.0和IIS7&已安装IIS6兼容性功能. MSI日志文件 我们在尝试在默认网站下定义三个虚拟Web应用程序目录时遇到以下错误,如使用/ log< filename>记录的那样. msiexec.exe的选项: Action 17:05:57: StartIIS7ConfigTransaction. 我希望有人可以帮助我解决我在 Windows Server 2008上使用Wix 3.5.2519.0和IIS7&已安装IIS6兼容性功能.

MSI日志文件

我们在尝试在默认网站下定义三个虚拟Web应用程序目录时遇到以下错误,如使用/ log< filename>记录的那样. msIExec.exe的选项:

Action 17:05:57: StartIIS7ConfigTransaction. Starting IIS Config TransactionAction 17:05:57: RollbackIIS7ConfigTransaction. Rolling back IIS Config TransactionAction 17:05:57: CommitIIS7ConfigTransaction. Committing IIS Config TransactionAction 17:05:57: ConfigureIIS7Exec. Configuring IISConfigureIIS7Exec:  Error 0x800700b7: Failed get sites sectionConfigureIIS7Exec:  Error 0x800700b7: Failed to search for WebsiteConfigureIIS7Exec:  Error 0x800700b7: Failed get sites sectionConfigureIIS7Exec:  Error 0x800700b7: Failed to search for WebsiteConfigureIIS7Exec:  Error 0x800700b7: Failed get sites sectionConfigureIIS7Exec:  Error 0x800700b7: Failed to search for WebsiteAction 17:05:57: WriteIIS7ConfigChanges. Installing Config Keys and ValuesWriteIIS7ConfigChanges:  Error 0x800700b7: Failed get sites sectionWriteIIS7ConfigChanges:  Error 0x800700b7: Failed to read sites from configWriteIIS7ConfigChanges:  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 ValuesRollback: Configuring IISRollback: Committing IIS Config TransactionRollback: Rolling back IIS Config Transaction

Wix组件声明

有三个网站需要安装,它们每个都在wxs文件中用组件xml语法声明如下(它们不相同但它们非常接近):

<Component ID="DataServiceVirtualDir" GuID="9AC00BDC-D710-429f-B68B-8130DB17C90C">  <CreateFolder/>  <IIS:WebVirtualDir ID="OurApplicationDataService"                      Alias="OurApplicationDataService"                      Directory="DATASERVICEDIR"                      WebSite="OurApplicationDataService"                      DirPropertIEs="OurApplicationDirPropertIEs">    <IIS:WebApplication ID="OurApplicationDataService" name="OurApplicationDataService">    </IIS:WebApplication>  </IIS:WebVirtualDir></Component>

网站声明

同样,它们使用以下网站元素和支持元素进行声明:

<IIS:WebSite ID="OurApplicationDataService" Directory="DATASERVICEDIR"              Description="OurApplication Data Service">  <IIS:WebAddress ID="AllUnassignedData" IP="*" Port="80"/></IIS:WebSite><IIS:WebSite ID="OurApplicationSecurityService" Directory="SecuritySERVICEDIR"              Description="OurApplication Security Service">  <IIS:WebAddress ID="AllUnassignedSecurity" IP="*" Port="80"/></IIS:WebSite><IIS:WebSite ID="OurApplicationProcessingFacades" Directory="PROCESSINGFACADESDIR"              Description="OurApplication Processing Facades">  <IIS:WebAddress ID="AllUnassignedFacades" IP="*" Port="80"/></IIS:WebSite><IIS:WebDirPropertIEs ID="OurApplicationDirPropertIEs" windowsAuthentication="no"                       AnonymousAccess="yes" AnonymousUser="OurApplicationUserID" /><IIS:WebDirPropertIEs ID="SecurityDirPropertIEs"                       windowsAuthentication="yes" AnonymousAccess="no" />

到目前为止的总结和结论

所以这个神秘的安装程序错误,0x800700b7,似乎搞砸了一切.

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

如果我将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/[email protected]/msg03483.HTML -->    <CreateFolder/>                 </Component></Directory>
总结

以上是内存溢出为你收集整理的iis-7 – Wix 3.5和IIS7 – WriteIIS7ConfigChanges失败 – 尝试将三个Web应用程序作为虚拟目录安装到默认网站全部内容,希望文章能够帮你解决iis-7 – Wix 3.5和IIS7 – WriteIIS7ConfigChanges失败 – 尝试将三个Web应用程序作为虚拟目录安装到默认网站所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1081128.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存