ADODB.Stream 错误 '800a0bbc' 写入文件失败 [英] ADODB.Stream error '800a0bbc' Write to file failed

查看:36
本文介绍了ADODB.Stream 错误 '800a0bbc' 写入文件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更改托管服务提供商时显示奇怪的错误:

I've weird and strange error showing while I change hosting provider which is:

ADODB.Stream 错误 '800a0bbc'

ADODB.Stream error '800a0bbc'

写入文件失败.

/cp/portal_upload.asp,第 63 行

/cp/portal_upload.asp, line 63

我提供了所需的权限,它解决了更新 Access DB 问题,但文件上传仍未修复.

I gave the needed permissions and it solve the update Access DB problem but file uploading still not fixed.

这是代码,提前致谢:

Public Sub Save(path)
    Dim streamFile, fileItem

    if Right(path, 1) <> "\" then path = path & "\"

    if not uploadedYet then Upload

    For Each fileItem In UploadedFiles.Items
        Set streamFile = Server.CreateObject("ADODB.Stream")
        streamFile.Type = 1
        streamFile.Open
        StreamRequest.Position=fileItem.Start
        StreamRequest.CopyTo streamFile, fileItem.Length
        streamFile.SaveToFile path & fileItem.FileName, 2  'This is line 63
        streamFile.close
        Set streamFile = Nothing
        fileItem.Path = path & fileItem.FileName
     Next
End Sub

推荐答案

首先检查是 path &fileItem 一个有效的地址?如果未创建文件夹,请创建它.此外,请重新检查您的权限.您是否已授予 IUSR 完全控制"权限?检查那些.

Firstly check is path & fileItem a valid address? If the folders are not created, create it. Also, recheck your permissions. Have you given IUSR the permission of "Full Control"? Check those.

这篇关于ADODB.Stream 错误 '800a0bbc' 写入文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆