|
-
Oct 16th, 2003, 10:23 AM
#1
IIS and MS ACCESS
I am used to having SQL Server as the DB backend for my websites, but I'm creating one right now that uses access... in IIS do I need to specify somewhere permissions for the DB so I can connect to it? because when I try now, it says:
The Microsoft Jet database engine cannot open the file 'c:\inetpub\wwwroot\mysite\pass\database\passaccts.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
In IIS I selected the MDB file and made sure it has read and write permissions enabled
-
Oct 16th, 2003, 03:00 PM
#2
Fanatic Member
i've had this error and it turned out to be the connection string. Are you using the one generated by .net when you drag a connection from the server explorer window? If so then try using a basic connection string like below:
strConnection = "provider=microsoft.jet.oledb.4.0;data source=C:\Inetpub\wwwroot\test\test.mdb"
-
Oct 17th, 2003, 11:41 PM
#3
PowerPoster
Also, if you are using Server Explorer while designing your application, makes sure it isn't connected to the database while you are running your app. I have found that to be a problem sometimes. Just right click the database in server explorer, and disconnect before running your web app.
(this is all based on the assumption that you are using the vs.net editor)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|