Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change property Enable32BitAppOnWin64 of Application Pool on IIS 7 on Windows Azure?

I have project with third part library, this library made for 32-bit systems. But my project will be working on Windows Azure and I must set property Enable32BitAppOnWin64 of Application Pool to true before Windows Azure run my application. What are the ways to set this property (config, programmatically)? If I can do this only programmatically then where in code must I change it? Can I do this in event OnStart of WebRole?

like image 568
Pavel F Avatar asked Jan 21 '26 01:01

Pavel F


1 Answers

I just had to do this. I used a Startup task to change this setting.

I created a batch file and added this command:

%windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.enable32BitAppOnWin64:true

I then added the batch file to run as a startup script to the azure configuration. It worked without any issues.

For more info on startup tasks see here: http://msdn.microsoft.com/en-us/library/gg456327.aspx

like image 168
BigJoe714 Avatar answered Jan 23 '26 14:01

BigJoe714