
Persisting an ADO Recordset with XML in ASP
Hello,
I have some sample code that successfully saves an ADO 2.5 recordset into an
ADODB.Stream object, like this, rs.save oStream, adPersistXML. Next I use the
ReadText property of the Stream object to get the XML stream, x=oStream.ReadText
(oStream.Size). Finally I save the string so that later I can re-create the
recordset by opening a stream object, loading the string into it, and then
opening the recordset from the stream object. Works like a champ.
My problem, is that I need to use this code in my ASP pages on my IIS server.
Everything works fine until I try to read the stream from the stream object.
When I call the readtext method I get a 3219 error, "Operation is not allowed in
this context."
Any ideas? I have searched throught the documentation and it appears that I
should be allowed to do this.
Thanks.
Robert E. Maurer
marchFIRST