Disk or network error.

Posted on 2006-07-13
Last Modified: 2008-01-09
Hello Experts
I have a web page which updates an access.mdb, well it used to!

This is developed on my local PC using localhost as the server.

XP was recently reinstalled and now on this PC the update page fails with an error

Microsoft JET Database Engine (0x80004005)
Disk or network error.

The database is works OK and I have Internet Guest account set up for IUSR_Machine name

Any ideas please?
Question by:johnhardy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 24

Expert Comment

ID: 17098157
LVL 24

Expert Comment

ID: 17098161
sorry about that, wrong thread...
LVL 25

Assisted Solution

by:Lee Savidge
Lee Savidge earned 230 total points
ID: 17098344

It is either a permissions problem or if you are connecting using ODBC then have you set up the db as an ODBC datasource? When opening an MDB file an LDB file is created. It might be that the IUSR_<COMPUTERNAME> doesn't have write permissions to either the MDB file or the LDB file that needs to be created. Try these steps:

1. Right-click on the folder contianing the MDB file and select Properties.
2. Uncheck the Read-only property if it is checked.
3. Click on the Security tab in the properties window. If you don't see such tab (Windows XP), close the properties window, open any folder, select Tools -> Folder Options -> View, and uncheck the option Use simple file sharing.)
4. Click Add and find, then select the user IUSR_<COMPUTERNAME>.
5. Select the Write checkbox in the Allow; column to assign Write permissions to the IUSR account.

Hope this helps.



Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

LVL 65

Accepted Solution

rockiroads earned 230 total points
ID: 17098394
See this

I got this from somewhere else
if you get a "disk or Network Error" then one of two things is wrong, the MDB file you are trying to 'access' is not accessable, meaning that the server this file resides on is not running properly.....or #2, your MsAccess application is not installed locally, but rather installed to run from the server (check your C:\Program Files\MsOffice or C:\MsOffice directories, depending on which version you are using, and see if the MsAccess.exe is present)

Also Have u confirmed the DB is not corrupted?

Sometimes u get a similar message when the DB has become corrupt.
Have u tried opening the DB? Once open, do a compact/repair
Also try a decompile (only do if corrupt db found)


Author Comment

ID: 17098723
Thanks Isavidge I have gone right through 1 to 5 and it made no change.

Thank you also rockiroads
I found this article
Define a TMP or TEMP environment variable and assign the variable to an existing folder. If you are accessing the Access database from IIS, be certain to check the system environment settings rather than environment variables of the logged-on user. Also ensure that the IUSER anonymous IIS account has access to the temporary folder.
You must restart the computer after changing any environment variables.
Environment variables are set under Windows NT 4.0 by going to the Control Panel and clicking System and then selecting the Environment tab.

But do not understand it.
It seems to refer to NT4 and I am using XP

I found access.exe OK and did a compact and repair with no probems.

Author Comment

ID: 17098793
I think we have put that one to bed.

For some reason the connection had an extra Line
which when I commented out the page went on to my next error which is some relief!

Featured Post

Webinar: MongoDB® Index Types

Join Percona’s Senior Technical Services Engineer, Adamo Tonete as he presents “MongoDB Index Types, How, When and Where Should They be Used?” on Wednesday, July 12, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question