简体   繁体   English

选择应用程序安装到的应用程序池

[英]Selecting the App pool an application installs to

Right I'm not too sure If I worded the question correctly but I'm in need of help. 是的,我不太确定我是否正确地表达了问题,但是我需要帮助。 I'm a trainee software engineer and I've been placed on a role to replace someone going away for a while. 我是一名见习软件工程师,我担任的角色是替换暂时离开的人。 We have existing ASP.NET MVC apps installed on some IIS servers and every time we re-deploy/install them, it install the application using the default app pool, when we need it to be installed on 'xAppPool'. 我们已经在某些IIS服务器上安装了现有的ASP.NET MVC应用程序,并且每次我们重新部署/安装它们时,当需要将其安装在“ xAppPool”上时,它将使用默认应用程序池安装该应用程序。

Is this a setting that needs to be changed within the code, Web.config, or the installer? 是否需要在代码,Web.config或安装程序中更改此设置? I'm not too sure and I'd much prefer if I didn't have snobby users complaining how I've got the title 'Software engineer', like in previous questions I've asked. 我不太确定,如果没有散落的用户抱怨我如何获得“软件工程师”的头衔,我会更喜欢,就像我之前问过的问题一样。

Apologies If I've not given enough description or there's another thread (I couldn't find it) - I'll happily shed any light on any questions you may have. 抱歉如果我没有给出足够的描述,或者还有另一个话题(我找不到)-我会很高兴为您提出任何问题。

Lewis 刘易斯

This is super easy to do with WebDeploy. 使用WebDeploy超级简单。 Just specify the IIS Site name which points to the correct site/app pool. 只需指定IIS站点名称即可指向正确的站点/应用程序池。 You can add the following MSBuild argument if you are using a TFS build or MSBuild.exe: 如果使用的是TFS构建或MSBuild.exe,则可以添加以下MSBuild参数:

/p:DeployIisAppPath="[Website name in IIS]" 

Or if you want to change it at deploy time you can use the MSDeploy SetParam argument: 或者,如果要在部署时进行更改,则可以使用MSDeploy SetParam参数:

-setParam:IIS Web Application Name="[Website name in IIS]"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM