Win32::OLE with IIS AppGetStatus()
Posted on 2004-10-28
I'm trying to use Win32::OLE with IIS 5.0. The AppGetStatus() method is not returning any values when run on an IIsWebDirectory. I've tried this both with and without an application installed on the directory. Code example follows:
$obj = Win32::OLE->GetObject("IIS://LocalHost/W3SVC/9/ROOT/foo")
or die "Can't access IIS on the local machine\n";
The IIS 5.0 documentation refers to three constants (APPSTATUS_NOTDEFINED, APPSTATUS_RUNNING, and APPSTATUS_STOPPED) that can be returned, but no values are returned at all, so I can't check on any equality.