Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2003, 06:54 AM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default ADODB.Recordset Error on wrong line????

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.
__________________
Sincerely,
Pierre "Greywacke" du Toit
[email protected]
don't worry about my 0 thankyou's either way, i would say thank you should you help, and i will gladly help others when this work rush is over.
 
Old December 4th, 2003, 07:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this FAQ: http://www.adopenstatic.com/faq/800a0bb9.asp

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 20th, 2004, 09:58 PM
Authorized User
 
Join Date: Jan 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was just wondering if you ever found out what the problem was? I have the same problem right now with one of my pages... Maybe you can help?

<%
    Dim rsUsers
    Set rsUsers = Server.CreateObject("ADODB.Recordset")
    rsUsers.Open "Person", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable

    If Session("PersonID") <> "" Then
        rsUsers.Filter = "PersonID = '" & Session("PersonID") & "'"
    Else
        rsUsers.Filter = "EMailAddress = '" & Request.Form("email") & "'" & _
                        "AND Password = '" & Request.Form("password") & "'"
        If rsUsers.EOF Then
            rsUsers.AddNew
        End If
    End If


 
Old February 20th, 2004, 05:19 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

Line 1216 will represent the line number of the page that your web server returns, not the line number of the page you are working on. View the source of the returned page and let us know what that line reads.

 
Old February 23rd, 2004, 11:01 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

Where is the connection string (gwConn) in your page? If the connection doesn't exeist you could verywell get that error.






Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Recordset error '800a0bb9' - PLEASE HELP! gmoney060 BOOK: Beginning ASP 3.0 3 April 25th, 2007 09:21 PM
ADODB.Recordset error lance Wrox Book Feedback 2 February 23rd, 2007 02:37 PM
ADODB.RecordSet -- Error nabeeljohn Classic ASP Professional 10 November 9th, 2006 05:23 AM
ADODB.Recordset error '800a0bb9' Thamil Classic ASP Basics 3 October 5th, 2006 04:01 AM
ADODB.Recordset error '800a0bb9' Line 24 rossdunbar Dreamweaver (all versions) 3 August 2nd, 2004 10:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.