2013-05-20 1 views
4

I I가 제공 호스팅 달라 동안 이상한 이상한 오류가 표시했습니다 :ADODB.Stream 오류가 실패

ADODB.Stream 오류 '800a0bbc'

쓰기 파일로를 실패한.

/cp/portal_upload.asp, 라인 (63)

내가 필요한 권한을주고이 업데이트 액세스 DB 문제가 있지만, 파일 업로드 여전히 고정되어 있지를 해결한다. 첫째

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 
+2

경로가 잘못되었을 수 있습니다. 'Response.Write ("경로는"& path & fileItem.FileName & "
")'하고 결과로 얻은 것을 게시하십시오. –

답변

1

확인입니다 path & fileItem 유효한 주소 :

이 코드는 사전에 감사합니다, 무엇입니까? 폴더를 만들지 않은 경우 폴더를 만듭니다. 또한 사용 권한을 다시 확인하십시오. IUSER에 "모든 권한"의 사용 권한을 부여 했습니까? 그것들을 확인하십시오.

+0

'IUSER에게 "모든 권한"을 어떻게 허락 했습니까? –