Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error inserting into access database

Status
Not open for further replies.

briancostea

Programmer
Apr 21, 2005
82
US
i get the following error when i run an aspx page with my local iis.

Exception Details: System.Data.OleDb.OleDbException: Disk or network error.

when i run it on my web server, it works just fine. i'm not sure if this is a permissions issue or not. i set the iis permissions of the virtual directory, and added computername\ASPNET to the actual directory.

any thoughts would be appreciated. thanks in advance.

code:
try
dbconn=New OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0; data source=" & server.mappath("ah.mdb"))
dbconn.Open()
sql="INSERT INTO tblFile VALUES ('" & strFileNameOnly & "', '" & mydate & "');"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
dbconn.Close()
Catch oException As Exception
end try
 
sorry, i forgot to write that the error occurs on the
dbconn.Open() line
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top