7 Replies Latest reply on Dec 20, 2010 8:30 AM by SafeBoot

    SbAdm Scripting fails in asp, but works in vbs

      Hi,

       

      when performing SbAdmScripting in asp, it always results in a 0xdb000002 "The database has not been created or initialised yet" connection error. If i send exactly the same xml from a vbs script ist executed.

      The asp and vbs are both executed on the Endpoint Encryption Server.

       

      The Scripting Tool Version is 5.1.7.0

       

      The XML is:

       

      <?xml version="1.0"?>
      <SafeBoot task="SbAdmin">
        <SbAdminScripting>
        <SbAdminConnection>
         <ConnectionType>Transient</ConnectionType>
         <AuthType>UserNamePassword</AuthType>
         <AdminUser>myuser</AdminUser>
         <AdminPwd>mypass</AdminPwd>
        </SbAdminConnection>
        <SbAdminCommand>
         <Command>SetUser</Command>
         <Machine>CH000253</Machine>
         <User>omauss</User>
        </SbAdminCommand>
      </SbAdminScripting>
      </SafeBoot>

      (Adding a <Database /> element to the XML does not solve the problem)

      The asp is (results in connection error):

       

      <%
      Set oSb = CreateObject("SBADMCOM.SbAdmScripting")
      Set fso = CreateObject("Scripting.FileSystemObject")
      Set ts = fso.OpenTextFile("c:\inetpub\EDToolboxProd\test\sbtestAdd.xml", 1)
      sText = ts.Readall
      ts.Close
      sRes = oSb.execute(sText)
      response.write sRes

      %>

       

       

      The vbs is (works):

       

      Set oSb = CreateObject("SBADMCOM.SbAdmScripting")
      Set fso = CreateObject("Scripting.FileSystemObject")
      WScript.Echo "Testing SBAdmin Connection"
      Set ts = fso.OpenTextFile("c:\inetpub\EDToolboxProd\test\sbtestAdd.xml", 1)
      sText = ts.Readall
      ts.Close
      sRes = oSb.execute(sText)
      WScript.Echo sRes

       

      Has anyone an idea, why the asp is not able to connect to the database, while the vbs is in exactly the same environment?

       

      TIA,

       

      Steffen Reinelt