[英]Web Platform Installer - Specific Application Pool in IIS7.0
I'm making a zip package to be uploaded to the MS web gallery. 我正在制作一个要上传到MS网络画廊的zip软件包。 There is no SQL database, so manifest.xml looks pretty simple...
没有SQL数据库,因此manifest.xml看起来非常简单...
<MSDeploy.iisApp>
<iisApp path="test_app"/>
</MSDeploy.iisApp>
as well as parameters.xml 以及parameters.xml
<parameters>
<parameter
name="Application Path"
description="Full site path where you would like to install your application"
defaultValue="test_app"
tags="iisapp">
<parameterEntry
type="ProviderPath"
scope="iisapp"
match="test_app"
/>
</parameter>
</parameters>
On IIS 6.0 it gets deployed properly. 在IIS 6.0上,它已正确部署。 But on IIS 7.0 it always has app pool targeted to asp.net 2.0.
但是在IIS 7.0上,它始终具有针对asp.net 2.0的应用程序池。 I need a default, asp.net 4.0 pool.
我需要一个默认的asp.net 4.0池。
If I specify a new pool in appPoolConfig section of manifest.xml file, all the pools in IIS 7.0 that existed before installation are removed, which corrupts currently installed applications. 如果我在manifest.xml文件的appPoolConfig部分中指定一个新池,则将删除IIS 7.0中在安装之前存在的所有池,这会破坏当前安装的应用程序。
Is there a way to tell WebPI that I want my test_app be running in existing Default ASP.NET 4.0 Application Pool? 有没有办法告诉WebPI我希望我的test_app在现有的默认ASP.NET 4.0应用程序池中运行?
You can achieve that by adding the following lines to your custom WPI feed: 您可以通过在自定义WPI Feed中添加以下几行来实现:
<dependency>
<or>
<dependency>
<productId>NETFramework4</productId>
</dependency>
<dependency>
<productId>NETFramework45</productId>
</dependency>
<dependency>
<productId>NETFX4</productId>
</dependency>
</or>
</dependency>
But as far I know, the WPI will create new application pool (with .NET 4.0) that name based on your iisApp path provider. 但据我所知,WPI将基于iisApp路径提供程序创建新的应用程序池(使用.NET 4.0)。 So we can't add to existing application pool.
因此,我们无法添加到现有的应用程序池中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.