Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Microsoft VBScript runtime error '800a01a8'

Microsoft VBScript runtime error '800a01a8'

Scheduled Pinned Locked Moved Web Development
helpdatabasesysadminsecuritycryptography
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abbas82
    wrote on last edited by
    #1

    Hi All, I am trying to encrypt the query string from page to page...so the calling page must encrypt the query string, and the called page must decrypt it... When I run it without encryption (same code), I have no problems. When I try with the encrypted query string, I get the following message... Microsoft VBScript runtime error '800a01a8' Object required: 'objSharedCrypto' /shared/includes/Crypt.asp, line 52 This is where we are decrypting... Dim QSColl, strRequestQS Set QSColl = RequestQS2() rptid = QSColl("rptid") dataid = QSColl("dataid") If dataid = "" Then dataid = rptid DataSession = "RPT-" & dataid strUDBId = Session("VMAccount") This is the RequestQS2 function I am calling Function RequestQS2() Dim objQS, key Dim objQSDict Dim strQS ' Set to Request.QueryString. strQS = Request.QueryString If EncryptedQS() Then Set objQS = DecryptToQS(strQS, Salt()) 'Set objQSDict = Server.CreateObject("Scripting.Dictionary") 'For Each key In objQS ' objQSDict.Add LCase(key), objQS(key) 'Next Set RequestQS2 = objQS Set objQS = Nothing Set objQSDict = Nothing Else Set RequestQS2 = Request.QueryString End If End Function Which in turn calls on the DecryptToQS function below if the query string is indeed encypted Function DecryptToQS(ByVal Str, ByVal Salt) If EncryptedStr(Str) Then ' Remove Prefix. Str = Right(Str, Len(Str) - Len(QSPrefix())) **Set DecryptToQS = objSharedCrypto.DecryptToQueryString(Str, "eFinanceIt", Salt)** Else DecryptToQS = Str End If End Function this is line 52 in shared/includes/crypt.asp Set DecryptToQS = objSharedCrypto.DecryptToQueryString(Str, "eFinanceIt", Salt) on the first line of Crypt.asp there is the following declaration Dim objSharedCrypto Set objSharedCrypto = Server.CreateObject("Crypto.QueryString") So I am not sure what the problem is, I've used the function with other pages, and it works fine...something is happening with this particular page however. Any ideas or suggestions? I appreciate the help Thanks

    A 1 Reply Last reply
    0
    • A Abbas82

      Hi All, I am trying to encrypt the query string from page to page...so the calling page must encrypt the query string, and the called page must decrypt it... When I run it without encryption (same code), I have no problems. When I try with the encrypted query string, I get the following message... Microsoft VBScript runtime error '800a01a8' Object required: 'objSharedCrypto' /shared/includes/Crypt.asp, line 52 This is where we are decrypting... Dim QSColl, strRequestQS Set QSColl = RequestQS2() rptid = QSColl("rptid") dataid = QSColl("dataid") If dataid = "" Then dataid = rptid DataSession = "RPT-" & dataid strUDBId = Session("VMAccount") This is the RequestQS2 function I am calling Function RequestQS2() Dim objQS, key Dim objQSDict Dim strQS ' Set to Request.QueryString. strQS = Request.QueryString If EncryptedQS() Then Set objQS = DecryptToQS(strQS, Salt()) 'Set objQSDict = Server.CreateObject("Scripting.Dictionary") 'For Each key In objQS ' objQSDict.Add LCase(key), objQS(key) 'Next Set RequestQS2 = objQS Set objQS = Nothing Set objQSDict = Nothing Else Set RequestQS2 = Request.QueryString End If End Function Which in turn calls on the DecryptToQS function below if the query string is indeed encypted Function DecryptToQS(ByVal Str, ByVal Salt) If EncryptedStr(Str) Then ' Remove Prefix. Str = Right(Str, Len(Str) - Len(QSPrefix())) **Set DecryptToQS = objSharedCrypto.DecryptToQueryString(Str, "eFinanceIt", Salt)** Else DecryptToQS = Str End If End Function this is line 52 in shared/includes/crypt.asp Set DecryptToQS = objSharedCrypto.DecryptToQueryString(Str, "eFinanceIt", Salt) on the first line of Crypt.asp there is the following declaration Dim objSharedCrypto Set objSharedCrypto = Server.CreateObject("Crypto.QueryString") So I am not sure what the problem is, I've used the function with other pages, and it works fine...something is happening with this particular page however. Any ideas or suggestions? I appreciate the help Thanks

      A Offline
      A Offline
      Abbas82
      wrote on last edited by
      #2

      I've figured it out....I had an include statement which was already creating the object...I just had to move the include from the bottom of the script to the top

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups