[thelist] ASP and GetObject....
Anthony Baratta
Anthony at Baratta.com
Tue Mar 11 20:00:27 CST 2003
Howdy folks...
I'm trying to get information from the IIS (v5) Metabase. My test code
works with VBS, but fails with ASP.
e.g.
On Error Resume Next
Set w3svc = GetObject("IIS://" & varComputerName & "/w3svc")
If Err.Number = 0 Then
''Connect worked, go do stuff
Else
''Connect Failed
response.write Err.Number
End If
On Error GoTo 0
When I print the Err.Number, I get "70". Which of course means nothing to
me. ;-P
I think this is a permissions error, e.g. IIS running as the Anonymous
Account, so it doesn't have permissions to invoke that object.
Clues? Clue bats?
--
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list