ADODB.Recordset error '800a0bb9' in Classic ASP Page in IIS 7

Discussion in 'Windows / IIS' started by mstams, Jul 29, 2008.

  1. Hello. I am migrating a classic ASP web application with Access database from IIS6 to IIS 7 and have run into the following error:



    ADODB.Recordset error '800a0bb9'


    Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.


    This error occurs when trying to set the Recordset.PageSize property as follows:


    set rs = Server.CreateObject("ADODB.Recordset")


    rs.cachesize=20


    rs.open strSql, my_Conn, 3


    if not (rs.EOF or rs.BOF) then


    rs.movefirst


    rs.pagesize = strPageSize ' <==== Error happens here


    maxpages = cint(rs.pagecount)


    rs.absolutepage = mypage


    end if


    I am sure that the SQL statement and connection string are valid as they work fine on the IIS 6 site and other queries against the same Access database(same connection string) work on the new IIS 7 site.


    It appears to me that something is different with the way the ADO.Recordset is working in IIS 7.


    Anyone else have this issue or know of a workaround?


    Thanks.
     
  2. I didn't mention it before, but the application already has included a subset of the ADOVBS constants, so I don't think that's it.

    I have seen that suggestion before. Thanks.
     
  3. Do you have spaces in any of the data field names?
    I've seen recordsets in ASP break because of that with this same error.
     

Share This Page