locked
Changing Default Application Pool in WebDeploy RRS feed

  • Question

  • User1865095734 posted

    Hi,

        How can we change the trarget application pool/ default application pool with the web deploy. i build the web site with web deploy but now while executing the webdeploy cmd file, i need to change the traget application pool also. Is there any options to set the parameters for changing the trarget application pool in asp.net website or in build web deploy.

    Raj

    Wednesday, July 6, 2011 2:26 AM

Answers

All replies

  • User-837620913 posted

    In your command-line arguments to webdeploy.exe, add the following:

    -setParam:"Application Pool"="MyCustomAppPool"

    Wednesday, July 6, 2011 5:54 AM
  • User1865095734 posted

    Hi,

          Thanks for the replay.

    Is there any way we can set this parameter from the tfs 2010 build. so while makeing the package it will add in the ms deploy cmd file automatically.

    Thanks in advance

    Rajeev

    Wednesday, July 6, 2011 6:52 AM
  • User470413944 posted

    Hi,

    As far as I know, TFS build settings supports MSBuild command line only.

    You can try to modify project file to add more build task.

    For more details:

    http://msdn.microsoft.com/en-us/library/ms164311.aspx

    http://msdn.microsoft.com/en-us/library/7z253716.aspx

    http://msbuildextensionpack.codeplex.com/

    I hope this can be helpful for you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 13, 2011 9:05 AM
  • User-1313882852 posted

    Hi DarrellNorton...

    Can I do same thing while using webdeploy API?? (deployment vai programmatically by using DeploymentObject and DeploymentManager )

    Tuesday, August 13, 2013 6:32 AM