Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x6e8 Thread 0x810 DBC 0xfd54024 Jet'.
/upload.asp, line 46
The uploading works on my local test server. And it also works when I upload just one file.
Line 46 in upload.asp: biData = Request.BinaryRead(Request.TotalBytes) It's weird that this line gives an error as the error has little to nothing to do with the uploading but with the database inserts.
For Each File In Uploader.Files.Items
txtLoc = File.FileName
if i = 0 then
strSQL = "INSERT INTO media (TypeID,MediaID,txtLoc,PlaatsID) VALUES('1','" & Request.QueryString("project"
& "','" & txtLoc & "','100');"
cnnMedia.Execute(strSQL)
end if
i = 1
strSQL = "INSERT INTO media (TypeID,MediaID,txtLoc,PlaatsID) VALUES('" & typeID & "','" & Request.QueryString("project"
& "','" & txtLoc & "','" & plaatsID & "');"
cnnMedia.Execute(strSQL)
File.SaveToDisk uploadsDirVar
Response.Write "Verstuurd bestand : " & File.FileName & "<br>"
Response.Write "Grootte : " & File.FileSize & " bytes<br>"
Response.Write "Bestandstype : " & File.ContentType & "<br><br>"
Next
It looks like the database is still locked for writing when I try to insert the second record. Am I executing my querys wrong ? should I build in a delay between the 2 inserts ?
thanks
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x6e8 Thread 0x810 DBC 0xfd54024 Jet'.
/upload.asp, line 46
The uploading works on my local test server. And it also works when I upload just one file.
Line 46 in upload.asp: biData = Request.BinaryRead(Request.TotalBytes) It's weird that this line gives an error as the error has little to nothing to do with the uploading but with the database inserts.
For Each File In Uploader.Files.Items
txtLoc = File.FileName
if i = 0 then
strSQL = "INSERT INTO media (TypeID,MediaID,txtLoc,PlaatsID) VALUES('1','" & Request.QueryString("project"

cnnMedia.Execute(strSQL)
end if
i = 1
strSQL = "INSERT INTO media (TypeID,MediaID,txtLoc,PlaatsID) VALUES('" & typeID & "','" & Request.QueryString("project"

cnnMedia.Execute(strSQL)
File.SaveToDisk uploadsDirVar
Response.Write "Verstuurd bestand : " & File.FileName & "<br>"
Response.Write "Grootte : " & File.FileSize & " bytes<br>"
Response.Write "Bestandstype : " & File.ContentType & "<br><br>"
Next
It looks like the database is still locked for writing when I try to insert the second record. Am I executing my querys wrong ? should I build in a delay between the 2 inserts ?
thanks