p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: Error c004800a w/ado stream object

Message #1 by thornlea@h... on Tue, 20 Feb 2001 22:45:51
When I try using the stream object, I'm getting a really perplexing error: 
error 'c004800a', and then a reference to the filename and line number.. 
nothing else. I've tried the MS Knowledge base and several other sources 
and there is no reference whatsoever to it. The code is by the book (its 
identical to whats on pg 518 of Professional Active Server Pages 3.0 by 
Wrox). I've indicated the line with a '<<. Any idea what could be causing 
it? By the way, for some reason adOpenStreamFromUrl isn't in the 
adovbs.inc file, but its value is 8.

Thanks ahead of time :) 

Here's the code:

dim stmData 
set stmData = server.createObject("ADODB.Stream") 
stmData.open "URL=http://www.yahoo.com/index.html", adModeRead, 
adOpenStreamFromUrl '<< 
response.write stmData.readText(-1) 
set stmData = nothing

  Return to Index