Fabricated Recordset in ASP won′t pass to VB component 
Author Message
 Fabricated Recordset in ASP won′t pass to VB component

I use an asp function to create a fabricated  recordset (which takes its
data from a HTML <TABLE> and its fields collection from an array).

If I check the object returned by the function in my asp page, it works fine
(I have access to its properties and collections).

But when I pass it as a parameter to a VB component (declared as "byval
vrstData as ADODB.Recordset") it fails returning the following error code:

0x80040E1D

My application is running on Win2K server and IIS 5.0

TIA,
        Ricardo



Tue, 28 Sep 2004 01:33:59 GMT  
 Fabricated Recordset in ASP won′t pass to VB component
See if this KB article applies...

INFO: Passing ADO Recordsets in Visual Basic Procedures
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q193871

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> I use an asp function to create a fabricated  recordset (which takes its
> data from a HTML <TABLE> and its fields collection from an array).

> If I check the object returned by the function in my asp page, it works fine
> (I have access to its properties and collections).

> But when I pass it as a parameter to a VB component (declared as "byval
> vrstData as ADODB.Recordset") it fails returning the following error code:

> 0x80040E1D

> My application is running on Win2K server and IIS 5.0

> TIA,
>         Ricardo



Tue, 28 Sep 2004 01:55:45 GMT  
 Fabricated Recordset in ASP won′t pass to VB component
Controls on a web page run in process, correct?

Bill Wallace



See if this KB article applies...

INFO: Passing ADO Recordsets in Visual Basic Procedures
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q193871

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--


Quote:
> I use an asp function to create a fabricated  recordset (which takes its
> data from a HTML <TABLE> and its fields collection from an array).

> If I check the object returned by the function in my asp page, it works fine
> (I have access to its properties and collections).

> But when I pass it as a parameter to a VB component (declared as "byval
> vrstData as ADODB.Recordset") it fails returning the following error code:

> 0x80040E1D

> My application is running on Win2K server and IIS 5.0

> TIA,
>         Ricardo



Tue, 28 Sep 2004 08:56:31 GMT  
 Fabricated Recordset in ASP won′t pass to VB component

Quote:

> Controls on a web page run in process, correct?

Are you using AX controls and ADO on the client side or the server side?  Server side they can run in-proc or out-of-proc depending on the "Application Protection" setting in IIS 5. "Low" is in-proc, "medium" (the default) is out-of-proc (a dllhost.exe process) and "pooled" is out-of-proc (from a dllhost.exe pool).  In-proc components aren't recommended since they put the IIS process at risk if the component takes a hard crash.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Tue, 28 Sep 2004 09:57:38 GMT  
 Fabricated Recordset in ASP won′t pass to VB component
Im using AX and ADO on the server side. The following is a code fragment
taken from the troubling asp page:

    ' Create a fabricated recordset from a posted HTML table and an array
containing names to populate the recordset's fields collection
    set rstMyRst = ssfrstCargarTabla("tblPaises", _
                                                        array("CODE,
"DESCRIPTION"))

    ' Call my bussiness object, passing the fabricated recordset just
created as one of the parameters
    Set objMyObject = Server.CreateObject("MyComponent.MyClass")

    objMyObject.MyMethod rstMyRst, _
                                            another_param, _
                                            another_param

    Set objMyObject = Nothing

The interesting thing is that if a take another recordset previously created
through a SQL Server 2000 query - and stored in the SESSION() object - it
works fine.

Thanks,
            Ricardo



Quote:

> Controls on a web page run in process, correct?

Are you using AX controls and ADO on the client side or the server side?
Server side they can run in-proc or out-of-proc depending on the
"Application Protection" setting in IIS 5. "Low" is in-proc, "medium" (the
default) is out-of-proc (a dllhost.exe process) and "pooled" is out-of-proc
(from a dllhost.exe pool).  In-proc components aren't recommended since they
put the IIS process at risk if the component takes a hard crash.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Tue, 28 Sep 2004 11:13:40 GMT  
 Fabricated Recordset in ASP won′t pass to VB component
A google search (both web abd groups) for 80040E1D does turn up a few hits related to disconnected recordsets and passing out=of-proc.  You might want to look them over.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Tue, 28 Sep 2004 12:50:20 GMT  
 Fabricated Recordset in ASP won′t pass to VB component
What type of recordset is this?

ADODB.Recordset or ADOR.Recordset or DAO.Recordset?

ADODB.Recordset has worked in all case for me (and I have whanged them all
over the place - even into MSMQ Messages to a remote client and back again).

I'll try to drag a recordset creation sample up from the depths of my VB if
I can (may be on Tuesday).

Chris Barber.



A google search (both web abd groups) for 80040E1D does turn up a few hits
related to disconnected recordsets and passing out=of-proc.  You might want
to look them over.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Tue, 28 Sep 2004 15:56:40 GMT  
 Fabricated Recordset in ASP won′t pass to VB component


Quote:
> What type of recordset is this?

> ADODB.Recordset or ADOR.Recordset or DAO.Recordset?

> ADODB.Recordset has worked in all case for me (and I have whanged them all
> over the place - even into MSMQ Messages to a remote client and back
again).

> I'll try to drag a recordset creation sample up from the depths of my VB
if
> I can (may be on Tuesday).

> Chris Barber.



> A google search (both web abd groups) for 80040E1D does turn up a few hits
> related to disconnected recordsets and passing out=of-proc.  You might
want
> to look them over.

> --
> Michael Harris
> Microsoft.MVP.Scripting
> Seattle WA US
> --

Quick suggestion, may not be of any use but seemed to solve a similar
problem I had.
RS.MoveFirst. My setup didn't seem to like me moving recordsets until I
reset the pointer.


Tue, 28 Sep 2004 16:10:40 GMT  
 Fabricated Recordset in ASP won′t pass to VB component
Im using a disconnected ADO 2.6 Recordset object (as in the rest of my
3-tier web application).

Note: Gavin Cox suggested to force a MoveFirst before passing the rst, but
that wont work if the rst has no records (as its quite possible in some
situations in my app)

Thanks,
        Ricardo


Quote:
> What type of recordset is this?

> ADODB.Recordset or ADOR.Recordset or DAO.Recordset?

> ADODB.Recordset has worked in all case for me (and I have whanged them all
> over the place - even into MSMQ Messages to a remote client and back
again).

> I'll try to drag a recordset creation sample up from the depths of my VB
if
> I can (may be on Tuesday).

> Chris Barber.



> A google search (both web abd groups) for 80040E1D does turn up a few hits
> related to disconnected recordsets and passing out=of-proc.  You might
want
> to look them over.

> --
> Michael Harris
> Microsoft.MVP.Scripting
> Seattle WA US
> --



Tue, 28 Sep 2004 23:13:39 GMT  
 
 [ 20 post ]  Go to page: [1] [2]

 Relevant Pages 

1. Optimistic locking in BDE

2. using fonts in TP

3. Fabricated Recordset in ASP won′t pass to VB component

4. Passing arrays from ASP To VB-components...need help

5. Passing Variables from ASP to VB Component

6. HELP! Run time error 200

7. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

8. Passing an array from ASP to VB 6 ActiveX component

9. Passing an array from ASP to VB 6 ActiveX component

10. Passing an ASP DLL to a VB ActiveX component

11. Can VB component return a Recordset to ASP?

12. Can VB component return a Recordset to ASP?

 

 
Powered by phpBB® Forum Software