To resolve this issue, follow these steps.
NOTE: This method resolves this issue only if the database is opened non-exclusively. If the database is opened exclusively, this issue cannot be avoided.
- Move the .mdb file to a folder that is not a subfolder of InetPub\wwwroot.
- Grant the necessary access rights to the folder where the database is located. If the Web site uses Anonymous Authentication, typically you only have to grant access permissions to IUSR_ComputerName.
- Modify the ActiveX Data Objects (ADO) connection string in the Active Server Pages (ASP) page to point to the new location of the Access database. To do so, follow these steps:
- Open the page in Design view
- On the View menu, click Field List.
- Right-click the Database tool at the top of the list, and then click Connection on the shortcut menu.
- Click the Connection tab, and then in the Select or enter a database name box, type the new path to the database.
NOTE: Microsoft recommends that you use the Jet 4.0 OLE DB Provider instead of the Access ODBC driver to establish an ADO connection. To select the Jet 4.0 OLE DB Provider, click the Provider tab. - Click Test Connection to confirm that the path is correct.
- Click OK to close the Data Link Properties dialog box.