473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IIS permissions issue with MS Access db

I have IIS 5.1 installed on my PC with XP Pro SP2 o.s.
I have 4 websites successfully running. Three of them use MS Access and one uses SQL Server 2000 (MSDE) as the data source. They all are based on Classic ASP.

I am trying to create a new MS Access-based site. It is mirrored after my site that uses SQL Server 2000, but this new site will use Access. (NOTE: The original site used to use access before I converted it to SQL Server. There is code in my connection module that will either connect via Access or SQL Server based on the value of a variable).

So here's what I did:
1. Created a folder in my inetpub\wwwroot\ path for the new site.
2. Copied the code from the original site.
3. Modified the OLE DB connection string to deal with the new db path and
set the code to enable the Access connect string.
4. Created a new virtual site in IIS (just like all the other ones)

When I attempt to run the new site, I get an MS Access related error stating that (and I paraphrase) "The database is opened in exclusive mode by another user or you don't have the permissions to access it"

I checked the various security and permission properties in my other Access-based sites to see if there might be an anomoly but couldn't find any. In fact, it looks like I am setup identically to the way the other sites are setup.

Any ideas on what might be wrong? Is there a foolproof checklist that you can follow when creating new virtual sites off of the default site?

I started thinking that I might have to use SQL Server in the new site, but that will require a lot of work so I really want to make it work with Access if at all possible.


Thanks in advance,
Paul
Nov 19 '07 #1
1 2917
kenobewan
4,871 Expert 4TB
I assume that this a .net site and that you need to do two things:

1. Ensure aspnet and user have the appropriate folder permissions.
2. Set impersonate to true.

If your app is not .net then we may require more info:

When you open a Jet ("Access") database, a file with the same name as the
MDB file is created, but with extension LDB. This is normal, and its
purpose is to keep track of who's in the database.

Whatever you are doing to open the database the first time is apparently
opening in in "exclusive" mode, which is why you get that message. But, the
LDB file is not the source of the problem. It is still a permission problem.

I have only encountered this problem in asp.net.
Nov 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Lyle Fairfield | last post by:
There is an MS-SQL table named Bugs_Comments_and_Suggestions. There is a form named Bugs_Comments_and_Suggestions. To allow John Doe to use this form, we GRANT him LOGIN and ACCESS permissions...
6
by: Mike MacSween | last post by:
Mmmm. Doing some work with Access security. Let's say I don't want the users to be able to edit the back end tables directly. Not because it's a 'high security' application but because they can...
4
by: palakwai_919 | last post by:
We have a Windows 2000 server with Beta 2 of the 2.0 Framework installed and the 1.1 Framework. For some odd reason when we hit our 2.0 Framework application we get the following error: Server...
1
by: James Beilby | last post by:
Hello people, It's been a long time since I've asked any techie questions on Usenet but I am under pressure to finish a project and the following issue has me stumped. I appreciate that it's a...
6
by: Fred W. | last post by:
When my application starts I need to check folder permissions to ensure they have "Full Control" before I let them proceed on. How can I check this permission. Thank you, Fred
8
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving...
3
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007...
7
by: sprash | last post by:
Newbie question: I'm trying to determine if a file physically exists regardless of the permissions on it Using File.Exists() returns false if it physically exists but the process does not...
1
by: Alex | last post by:
Hello, I've written a Console application in VB 2005 which parses some files and stores the results in an MS SQL database. It runs beautifully locally, but as soon as I stick the compiled EXE...
3
schmals
by: schmals | last post by:
Hello, I am currently writing a simple shell program for UNIX and I've run into a bit of an issue. So, every file has 9 access permissions: read, write, and execute for user, group, and others. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.