PRB: "Another Application is Currently Using JET File..." (169497)



The information in this article applies to:

  • Microsoft Visual C++ 4.0
  • Microsoft Visual C++ 4.1
  • Microsoft Visual C++, 32-bit Enterprise Edition 4.2
  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 4.2
  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q169497

SYMPTOMS

When you try to install DAO components, the following error message may appear:
Another application is currently using JET file, close all applications and continue.

CAUSE

This error message can have one of following causes:

  • Another application has opened one of the DAO/Jet DLL's. When a DLL is loaded in memory, Windows treats the file on the disk it was loaded from as read-only. This is by design.
  • The read-only attribute of the file that is being updated has been turned on.

RESOLUTION

To resolve the first problem, if one of the DLL's that DAO is trying to update is loaded in memory, then shut down all of your applications and tell the setup program to continue. It is a good idea to perform a setup with all applications shut down for this very reason.

The second problem is not as obvious because the setup program cannot distinguish between a file with a read-only attribute set and a file that is currently loaded into memory. The setup program will not identify the specific file(s) that have read-only turned on.

Having the read-only flag set for DLL's is usually used as a low-level virus protection, but it can also hamper the operation of programs using those DLL's or attempting to upgrade them. From a DOS command prompt, go to the Windows directory and type:
   attrib -r *.* /s
					
You may encounter some files that cannot be set as read-only. As long as they are not EXE's or DLL's, it is not a problem.

You may also want to go to the \Program Files\Common Files directory and perform the same procedure because DAO/Jet and other shared components are often installed there as well.

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:12/1/2003
Keywords:kbDatabase kbprb KB169497