Microsoft JET Database Engine error ‘80004005’

When you connect the asp page to the Access database, and it come out error as below

Microsoft JET Database Engine error ‘80004005’
Unspecified error


Could not create a Disk Cache Sub-directory for the Application

It might be the permission issue on the C:\Windows\Temp folder , that folder may need to assign Users and CREATOR OWNER ownership.

The funny thing is, it can not assign manually, you may need to run the command to do so. It may be some setting on it which I still do not sure what is the cause.

Anyways, just run the command as below by admin privilege on the command prompt.

icacls %SystemDrive%\Windows\Temp /grant Users:(CI)(S,WD,AD,X)

This command enables every user to create files and directories in the temporary directory.

icacls %SystemDrive%\Windows\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F)

The user who creates a file or a directory in the temporary directory is the CREATOR OWNER. The CREATOR OWNER access control entry grants a user complete control over the file or over the directory. Other users cannot access these files and directories because they are not the CREATOR OWNER.

Running this 2 command, it will fix the permission issue on C:\Windows\Temp

Leave a Reply

Your email address will not be published. Required fields are marked *