Hi there,
I think this is a classic ASP forum, so you may try your luck in one of the .NET forums for similar problems in the future.
Anyway, the problem is related to permissions. When you connect to the database using the Server Explorer (I assume you're using Visual Studio .NET?) you connect under your user account which apparently has enough permissions.
At run-time, however, the web server connects to this database. The account that the web server uses is usually IUSR_MachineName where MachineName is the name of your computer. This account needs enough permissions for both the .mdb file and the folder it resides in.
To change the permissions, open a Windows Explorer, right-click C:\database, choose Properties and then on the Security tab add the IUSR_MachineName account. Make sure it has at least read and change permissions.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|