Persisting an ADO Recordset with XML in ASP 
Author Message
 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



Mon, 16 Jun 2003 23:47:03 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. Persisting ADO to ASP as XML

2. Persisting ADO to ASP as XML

3. ADO 2.5 persisting recordset as XML

4. Modifing structure for a persisted ADO - XML recordset

5. Help: ADO 2.5 XML works, ADTG doesn't with persisted recordsets

6. Error persisting XML stream to ADO recordset

7. ADO 2.5 persisting a recordset as XML

8. Modifing structure for a persisted ADO - XML recordset

9. Opening a recordset from a Persisted XML Stream Object (ADO 2.5)

10. Persist recordset as XML, or cook XML w/ XMLDSO

11. Problem using VB to retrieve ASP/XML using ADO recordset

12. persisting recordsets to XML


 
Powered by phpBB® Forum Software