views:

863

answers:

1

Hi,

I am writing an installer class in which I am creating a new Application Pool. This obviously is not going to work on IIS <6.0. How can I safely check (programmatically in .Net) if IIS supports application pools before I try to add one?

+3  A: 

If you are comfortable relying on the version, it's in the registry

Key: \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
Value Name: MajorVersion
Lou Franco