达内 获奖是吕克兄弟:求救,ADODB.Stream 错误 '800a0bb9' ,在线等

来源:百度文库 编辑:中科新闻网 时间:2024/04/30 09:50:26
各位大侠,小弟的网站不知道为什么重装一下系统就出现这个问题,

"ADODB.Stream 错误 '800a0bb9'

参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。

/inc/function.asp,行 699
"

,2003的系统,重装之前也是2003,但能正常运行,请各位大侠帮我看看是为什么,小弟在此感谢各位,代码如下:

Function GetBody(url)
on error resume next
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "get", url, False, "", ""
.Send
GetBody = .ResponseBody
End With
Set Retrieval = Nothing
End Function
Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body '此行为699行'
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function

在第699行前调试一下
response.write body
response.end
objstream.write body

看看BODY里面数据是否存在或非法