Ask a Question related to ASP Database, Design and Development.
-
Donald Welker #1
Object Reference Error on ADODB.RecordSet Fields
One of my developers is working on a .Net web app that has a wee bit o
legacy code in Page_Onload:
....
Dim MySelect as String = "SELECT User FROM DUAL"
Dim rs as ADODB.RecordSet
rs.Open(MySelect,Conn)
rs.MoveFirst
UNam = rs.Fields("User").Value
....
This code gets invoked separately from each of two web apps linked from an
HTML page.
The second web app fails to locate rs.Fields("User") and returns "Object
reference not set to an instance of an object." but it DOES succeed in
opening the recordset and retrieving a record.
If we assign the row to an array A and retrieve the value of A(0,0) we do
indeed get the correct string (the username as seen by the database)?!
Anybody got any ideas? (The connection is via Oracle 9.2)
Donald Welker Guest
-
adodb.recordset object and the IIS session object
I was looking through the registry of a Windows 2000 Adv. Server I just built and noticed that the adodb.recordset object had been set to "both"... -
Help with ADODB.Recordset Error (0x800A0BB9)
Hello, I'm having problems resolving ADODB.Recordset Error 0x800A0BB9. I'm running tutorial code from the Wrox Press book: Beginning ASP 3.0; Ch.... -
Error Type: ADODB.Recordset (0x800A0BCD)
Hi! I have a ASP page that generates an excel report. It works fine if there are records found, however, if no records are found I would like to... -
Connection error: ADODB.Recordset (0x800A0E7D)
I have been copying and pasting code and this has been working, but now I get this error: Error Type: ADODB.Recordset (0x800A0E7D) Operation is... -
#25481 [Opn->Bgs]: ADOdb -> fields error
ID: 25481 Updated by: sniper@php.net Reported By: zerokode at gmx dot net -Status: Open +Status: ... -
Ray at #2
Re: Object Reference Error on ADODB.RecordSet Fields
..NET doesn't like it when code assumes that it will use the default
property, i.e. recordsetObject.fields.ITEM(index).value
But I don't know that that is your problem. Take a look here.
[url]http://www.aspfaq.com/5002[/url]
Ray at work
"Donald Welker" <welkerdp@npt.nuwc.navy.mil> wrote in message
news:uGJwsEfiDHA.944@tk2msftngp13.phx.gbl...> One of my developers is working on a .Net web app that has a wee bit o
> legacy code in Page_Onload:
>
> ...
> Dim MySelect as String = "SELECT User FROM DUAL"
> Dim rs as ADODB.RecordSet
> rs.Open(MySelect,Conn)
> rs.MoveFirst
> UNam = rs.Fields("User").Value
> ...
>
> This code gets invoked separately from each of two web apps linked from an
> HTML page.
> The second web app fails to locate rs.Fields("User") and returns "Object
> reference not set to an instance of an object." but it DOES succeed in
> opening the recordset and retrieving a record.
>
> If we assign the row to an array A and retrieve the value of A(0,0) we do
> indeed get the correct string (the username as seen by the database)?!
>
> Anybody got any ideas? (The connection is via Oracle 9.2)
>
>
Ray at Guest



Reply With Quote

