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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With