Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I control the AppPool used for deploy through VS & MSDeploy settings
    primarykey
    data
    text
    <p>When I build a deploy package for my webapp the package contains an archive.xml file that contains the following:</p> <pre><code>&lt;createApp applicationPool="" MSDeploy.applicationPool="1" appExists="True" MSDeploy.appExists="1" ... /&gt; </code></pre> <h1>Question:</h1> <p>How can I control the application pool that the webapp gets installed into and, in some cases, create a new application pool? Are there VS settings that I can change to control the above output or otherwise affect how the application pool at deploy time?</p> <h1>What I've found so far:</h1> <h2>1. An MSBuild Parameter</h2> <p>According to <a href="https://stackoverflow.com/questions/4462001/set-application-pool-with-msdeploy-and-tfs-2010/4764080#4764080">one SO post</a> I can tell msbuild to use an app pool by adding the following option but I couldn't see any difference in the generated output:</p> <pre><code>/p:IncludeAppPool=true </code></pre> <h2>2. A parameters.xml file customization</h2> <p><a href="https://stackoverflow.com/questions/4023762/set-application-pool-for-package-using-msdeploy">Another post on setting the app pool for msdeploy</a> seems to imply I might be able to modify the generated <code>parameters.xml</code> file so that I can specify the app pool name as an argument to msdeploy. This file exists within the zip package so wouldn't be easy to customize. If I change it to an archive then the file's more easily accessible.</p> <h2>3. A change of VS settings</h2> <p>The <a href="http://msdn.microsoft.com/en-us/library/dd465323.aspx" rel="nofollow noreferrer">Howto deploy a webapp</a> page seems to imply I might need to switch from IIS Express to IIS and then enable some checkboxes. On my project properties page the <code>Include application pool settings used by this Web project</code> checkbox is disabled regardless of the "Include IIS settings as configured in IIS Express" checkbox setting (which I currently have unchecked). I'll try switching to the full IIS next and seeing if that gives me better control.</p> <h2>4. Create an app pool with cscript</h2> <p>It looks like I might be able to <a href="https://stackoverflow.com/questions/4462001/set-application-pool-with-msdeploy-and-tfs-2010/5235921#5235921">create an app pool with a separate tool</a> but I'm not sure if it's TFS-only. It's a tool that I haven't seen before but it may be a capable tool.</p> <h2>5. MSDeploy has an appPoolConfig Provider</h2> <p>MSDeploy's <a href="http://technet.microsoft.com/en-us/library/dd569070%28WS.10%29.aspx" rel="nofollow noreferrer">appPoolConfig provider</a> looks promising as I could probably manually setup an application pool and then use that as a sync source, but at least it's only manual once.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload