Dennis Galletta
Updated Oct. 8, 2003
Phone: 648-1699; e-mail: galletta@katz.pitt.edu
Using ASP.net we found the following error after clicking the RUN icon (►)
|
|
The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\test\custsys.mdb'. It is already opened exclusively by another user, or you need permission to view its data. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\test\custsys.mdb'. It is already opened exclusively by another user, or you need permission to view its data. |
After uploading the ASP.net application to a web server, the code worked. It would not work locally.
The problem is because, strangely enough, the local user-administrator (me) didn't have access to this Access file (the one I myself created!). It was created pre-XP, so it must have made an assumption of no permission when it was carried along with my old data in upgrading through 95, 98, 2000, then XP. There need to be permissions in several places.
To do this for the files, you might have to go through the following (IUSR is used as an example):
4. Some have said to reboot. You only have to do those steps once for each application & database you create. Once you set the TMP and TEMP folders, you are set until you move to a different server.
The brief information on this page is not available at any single resource.