Trying to script some remote rule controls from an ASP page with IIS 6 running on a separate server to ISA and running into a problem. At the moment, i have a short piece of test code (correct servername, password etc are actually filled in on my code)
Set root = CreateObject("FPC.Root")
Set isaArray = root.Arrays.Connect("servername", "username", "domain", "password")
Set rules = isaArray.ArrayPolicy.PolicyRules
For Each rule In rules
if rule.Name="Lab Access" then
set labs=rule.SourceSelectionIPs.Subnets
for each lab in labs
response.write("Lab:" & lab.Name & "<BR>")
next
end if
Next
root.Arrays.Disconnect isaArray
When I try and load this page from my local machine, if I currently have a terminal server connection active to the IIS box, it works, but if I don't have a terminal server connection to the IIS machine, i get the error
error '80070002' net.asp, line 5
My understanding is that error is a "file not found" type problem? Why would this only work while i have a terminal server connection to the IIS box, which is separate from the ISA box, and I'm trying to load the page in a local machine browser?
thanks.
< Message edited by tlarrea -- 19.Apr.2007 1:26:57 AM >