简体   繁体   中英

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'.

Is this a setting that needs to be changed within the code, Web.config, or the installer? 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. Just specify the IIS Site name which points to the correct site/app pool. You can add the following MSBuild argument if you are using a TFS build or MSBuild.exe:

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

Or if you want to change it at deploy time you can use the MSDeploy SetParam argument:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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