
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
--