hi all...
okay here is the prob...
i get this error on the page:
Code:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/ssi/subroutines.asp, line 1216
now the line 1216 in that asp file is:
Code:
enc_tmp = e & "; N/A"
which is not ADODB.Recordset at all :/ the possible error could be in this line (1220):
Code:
gwRS.Open "transactions", gwConn, adOpenDynamic, adLockOptimistic, adCmdTable
now i have included the ADODB Metadata in the global.asa for the variables, and the table name is the exact name of the table, also gwConn is a valid connection...
the only other possible error could be on this line in a function which was called in a previous version of the page:
Code:
enc_tmp = Crypto(e, key)
here i paste the Crypto function:
Code:
Function Crypto(Input, Key)
Dim i, n, cypher, gwRS, crypt_id, encrypted, char, parsed, return
return = "; "
return = Split(return, "; ")
Set gwRS = Server.CreateObject("ADODB.Recordset")
gwRS.Open "cryptography", gwConn, adOpenDynamic, adLockOptimistic, adCmdTable
If Key = "" Then ' Encrypt
cypher = GenKey(CypherStrength)
return(0) = EnCrypt(Input, cypher)
Do While (InStr(return(0),"; ") > 0)
cypher = GenKey(CypherStrength)
return(0) = Encrypt(Input, cypher)
Loop
gwRS.AddNew
gwRS("crypt_key") = cypher
gwRS.Update
return(1) = CStr(gwRS("crypt_id"))
Else ' Decrypt
gwRS.Find("crypt_id = " & Key)
If Not gwRS.EOF Then
cypher = gwRS("crypt_key")
return(0) = DeCrypt(Input, cypher)
return(1) = "1"
Else
return(0) = "(Key Not Found)"
return(1) = "0"
End If
End If
Crypto = Join(return, "; ")
End Function
i have been bugged by this problem since last week friday (28 november i think), it is now almost a week (today is 4 december, tomorrow it will have been 7 days!) that i am stuck... any swift help on this problem would really be appreciated...
Sincerely,
Pierre du Toit.