# Set IIS App Pool when creating new Website (IIS 7)

**URL:** https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571
**Category:** Discussion
**Created:** [August 20, 2010, 6:12am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571 "2010-08-20T06:12:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 20, 2010, 6:12am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/1 "2010-08-20T06:12:17Z")

</div>

&nbsp;Hello,

I am working on a Web deploy script with FinalBuilder, and as part of the deploy, I'd like to ensure that the app pool and web site exist before deploying. &nbsp;If they do no exist, I'd like to create them both. &nbsp;So, I've used the Create Application pool (IIS 7) action to create the app pool, no problems. &nbsp;Then I used the Create Website (IIS 7) action to create the web site, and I can specify almost everything I need to with that with the exception that I cannot associate my web site with the app pool I created in the previous step. &nbsp;When it creates the web site, it associates it with the default app pool. &nbsp;Is there a way for me to associate my new web site with my new app pool?

Thanks,

Nick

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 21, 2010, 2:47am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/2 "2010-08-21T02:47:08Z")

</div>

Hi Nick   
  
 We did it for the IIS6 actions, so it may just be an oversight… I’ll get someone to look at this on Monday.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 21, 2010, 11:51am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/3 "2010-08-21T11:51:28Z")

</div>

&nbsp;Awesome Thanks!

We have found a work-around using PsExec and appcmd to set, but it would be nice if it were a part of the Create Web Site action.

Nick

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [August 24, 2010, 1:09am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/4 "2010-08-24T01:09:55Z")

</div>

Hi Nick   
  
 I have added support for this in the IIS 7 actions. I will post the build containing the changes shortly.   
  
 Regards   
 Steve

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [August 26, 2010, 12:02pm UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/5 "2010-08-26T12:02:25Z")

</div>

Hi Nick   
  
Here is the link to the build containing these changes:   
~~https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_610.exe~~

Edited:

This is the correct build:

https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_621.exe  
  
Regards,   
Steve

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 26, 2010, 7:08am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/6 "2010-08-26T07:08:57Z")

</div>

When do these builds move into release mode out of test mode?

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 26, 2010, 7:33am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/7 "2010-08-26T07:33:59Z")

</div>

I keep getting Unable to Set Variable Variable no longer defined errors from this build. The variables that I'm working with are very clearly defined. I can see them in the watch window.

One thing to note, these variables are Action List Parameters.

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [August 26, 2010, 11:18am UTC](https://www.finalbuilder.com/forums/t/set-iis-app-pool-when-creating-new-website-iis-7/1571/8 "2010-08-26T11:18:29Z")

</div>

Hi Nick   
  
 Sorry about that! It appears that a fix we made for another issue broke action some of the action list parameter functionality. This has been fixed in the following build:   
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_622.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_622.exe)   
  
 In terms of tests builds moving to release builds, we hope to release a FB7 official update very soon (just waiting on feedback from some other issues that we have recently addressed).   
  
 Regards,   
 Steve
