Set Enable 32-bit Applications on App Pool Creation

Automated deployment for web applications and databases

Moderators: Mike Upton, justin.caldicott, Sean.newham, csmith, chirayu, DavidSimner, david.conlin

Set Enable 32-bit Applications on App Pool Creation

Postby mtrutledge » Fri Jan 17, 2014 12:00 am

How do I set the Enable 32-bit Applications property of an Application Pool on a 64-bit machine to true when red-gate deploy sets up the application pool for the first time?
mtrutledge
 
Posts: 5
Joined: Mon Oct 14, 2013 4:49 pm

Postby james.billings » Fri Jan 17, 2014 10:16 am

I don't think any of the variables in DM will let you set this option. It may be possible to set it in the postDeploy.ps1 by executing this though:

Code: Select all
appcmd set apppool /apppool.name:MyAppPool /enable32BitAppOnWin64:true
james.billings
 
Posts: 1146
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby mtrutledge » Fri Jan 17, 2014 7:33 pm

Thanks for the reply. That will work, I will create a post deploy script.
mtrutledge
 
Posts: 5
Joined: Mon Oct 14, 2013 4:49 pm

Postby swinghouse » Wed Feb 26, 2014 12:34 pm

I had to make some slight modifications to the script that James suggested and ended up with:

Code: Select all
$appcmd = "$env:windir\\system32\\inetsrv\\appcmd.exe set apppool /apppool.name:MyAppPool /enable32BitAppOnWin64:true"
Invoke-Expression $appcmd


This works fine for us.

I added a suggestion at http://redgate.uservoice.com/forums/176290-deployment-manager/suggestions/5570073-configure-the-enable-32-bit-applications-setting regarding a DM variable for this setting.
swinghouse
 
Posts: 99
Joined: Mon Sep 12, 2011 10:51 am


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests