mstams
07-29-2008, 01:18 AM
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.
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.