From: Michal Valent on
Hello,
in the previous version of IIS on 32bit systems
I used to verify if some web application exists via a script like this

set objIIS = CoGetObject("IIS://localhost/W3SVC/1/Root/ABI", "");
if( IsObject( objIIS ) ) then ...

in IIS7 with no 6.0 compatibility feature installed this is obsolete.

On the 32bit systems I used to run aspnet_regiis.exe from the script,
now there is need to distinguish which aspnet_regiis.exe is valid for the
DefaultAppPool,
64bit or 32bit,
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe,
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe,
according to AppPool - Enable 32 bit App setting.

What could be a good practice with IIS7 64bit ?

thank you
miso

From: Michal Valent on
Hello its me again,
if I want use old fashion IIS ADSI provider COM objects for IIS7
IIS 6.0 compatibility must be installed.
How to intelligently find that 6.0 compatibility is installed ?
Except to try GetObject("") and this will fail.

How to find if any Application pool is in the 32 bit or 64 bit worker
process ?
I have searched ADSI but found no means.

miso

"Michal Valent" <valent(a)spirit.sk> wrote in message
news:#kmD8FYsKHA.4360(a)TK2MSFTNGP05.phx.gbl...
> Hello,
> in the previous version of IIS on 32bit systems
> I used to verify if some web application exists via a script like this
>
> set objIIS = CoGetObject("IIS://localhost/W3SVC/1/Root/ABI", "");
> if( IsObject( objIIS ) ) then ...
>
> in IIS7 with no 6.0 compatibility feature installed this is obsolete.
>
> On the 32bit systems I used to run aspnet_regiis.exe from the script,
> now there is need to distinguish which aspnet_regiis.exe is valid for the
> DefaultAppPool,
> 64bit or 32bit,
> C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe,
> C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe,
> according to AppPool - Enable 32 bit App setting.
>
> What could be a good practice with IIS7 64bit ?
>
> thank you
> miso