Results 1 to 3 of 3

Thread: IIS and MS ACCESS

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    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"
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width