简体   繁体   English

Web平台安装程序-IIS7.0中的特定应用程序池

[英]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.

相关问题 如何将应用程序从IIS7.0网站转换回虚拟目录 - How to convert an application from an IIS7.0 website back to a virtual directory IISNode-IIS7.0-Windows 2008 R2上的无效web.config问题 - IISNode - IIS7.0 - Invalid web.config issue on Windows 2008 R2 IIS7.0:如何在IIS中仅启用“匿名身份验证” - IIS7.0 : how to enable only “Anonymous Authentication” in IIS iis7.0无法打开asp.net4.0网站 - iis7.0 cant open asp.net4.0 sites 使用安装程序以编程方式在IIS中创建应用程序池时出错 - Error creating an Application Pool in IIS programmatically with an installer IIS 7.0出现503错误并停止了应用程序池 - IIS 7.0 gives 503 error and stops the application pool 使用 servermanager web 设置项目将应用程序池设置为特定的 iis 应用程序 - Setting application pool to a specific iis application using servermanager web setup project Windows XP上的Web平台安装程序。 IIS仍然瘫痪? - Web Platform Installer on Windows XP. IIS still crippled? Web 部署错误到 IIS - 应用程序池 managedRuntimeVersion - Web deploy error to IIS - application pool managedRuntimeVersion Web平台安装程序:在此计算机上找到了较新版本的IIS 8.0 Express - Web Platform Installer: A newer version of IIS 8.0 Express was found on this machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM