http://www.ISAserver.org ------------------------------------------------------- You have to pass the credentials in the connectotoconfigurationstorageserver method when you run in an ASP page because the ASP process operates under the network services account, which has no rights in CSS. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/isasdk/isa/fpc_connecttoconfigurationstorageserver.asp Spells it out in gory detail. ..of course, this means you have to stash those credentials somewhere ASP can find them, BUT NOT IN PLAIN TEXT anywhere. ------------------------------------------------------- Jim Harrison MCP(NT4, W2K), A+, Network+, PCG http://isaserver.org/Jim_Harrison/ http://isatools.org Read the help / books / articles! ------------------------------------------------------- -----Original Message----- From: isalist-bounce@xxxxxxxxxxxxx [mailto:isalist-bounce@xxxxxxxxxxxxx] On Behalf Of Periyasamy, Raj Sent: Tuesday, April 25, 2006 14:11 To: isalist@xxxxxxxxxxxxx Subject: [isalist] Enterprise scripting question http://www.ISAserver.org ------------------------------------------------------- Hi all, I am trying to create a web based interface, just for adding domains to a Domain Name Set. The script itself runs fine if I run it from the command prompt. However, when I try to embed the code in an ASP page, the script fails while trying to do ConnectToConfigurationStorageServer. The following is the extract of the code from the ASP page: Set root = CreateObject("FPC.Root") root.ConnectToConfigurationStorageServer cssComputer Set oIsaArray = root.Arrays.Item("INFINEUM") Set oDomainNameSet = oIsaArray.RuleElements.DomainNameSets.Item(sDomainNameSetName) oDomainNameSet.Add(sDomainToAdd) If Err.Number = -2147024713 Then response.write "Error: Domain " + sDomainToAdd + " is already unblocked." Else oDomainNameSet.Save response.write "Success: Domain " + sDomainToAdd + " is now unblocked." End If root.disConnectFromConfigurationStorageServer The following is the error message I get when accessing the URL, Error Type: FPC.Root.1 (0x80070002) The system cannot find the file specified. /prx_urlexcept.asp, line 38 Line 38 happens to be "oFPC.ConnectToConfigurationStorageServer cssComputer" Would appreciate any inputs. Thanks. Regards, Raj Periyasamy MCSE(Messaging), CCNA ------------------------------------------------------ List Archives: //www.freelists.org/archives/isalist/ ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp ISA Server Articles and Tutorials: http://www.isaserver.org/articles_tutorials/ ISA Server Blogs: http://blogs.isaserver.org/ ------------------------------------------------------ Visit TechGenix.com for more information about our other sites: http://www.techgenix.com ------------------------------------------------------ To unsubscribe visit http://www.isaserver.org/pages/isalist.asp Report abuse to listadmin@xxxxxxxxxxxxx All mail to and from this domain is GFI-scanned. ------------------------------------------------------ List Archives: //www.freelists.org/archives/isalist/ ISA Server Newsletter: http://www.isaserver.org/pages/newsletter.asp ISA Server Articles and Tutorials: http://www.isaserver.org/articles_tutorials/ ISA Server Blogs: http://blogs.isaserver.org/ ------------------------------------------------------ Visit TechGenix.com for more information about our other sites: http://www.techgenix.com ------------------------------------------------------ To unsubscribe visit http://www.isaserver.org/pages/isalist.asp Report abuse to listadmin@xxxxxxxxxxxxx