473,394 Members | 1,811 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,394 software developers and data experts.

Sharing an access database

et
I have an aspnet program that uses an Access database -- I won't go into why
I'm using Access -- and can't get it to run in share mode.

If I have opened the website, and I try to edit the database, I get a
message saying the database is in read only because it's being used
elsewhere. Even if I close the website, close the program, close everything
I can think of, I still get the error. I always have to reboot.

If I add Mode=Share Deny None to the connection string, I get an aspnet
error that says "System.Data.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file
'c:\inetpub\wwwroot\charliesgourmetbaking\cgb.mdb' . It is already opened
exclusively by another user, or you need permission to view its data."

I have permission, I'm using the Admin logon in the connection string and
there is no password, I have never set a logon or passwords to this Access
database.

Any ideas what I can do to keep the database from being locked? It's a real
pain to make a change, run the site then I have to boot again if I want to
make another change.

Thanks & let me know if this is better in an Access newsgroup, but I think
it's an asp method to unlock Access, no?

Nov 18 '05 #1
4 1425
For Access databases, the Windows account(perhaps the anonymous acct,
depending on your security settings) will need almost complete access to the
directory where the datbase is. This is because Access uses a data file(s) to
keep track of multi-user access to the database. The account under which the
application is running will need to be able to perform the modifications,
etc., to the temporary files used by Access.

"et" wrote:
I have an aspnet program that uses an Access database -- I won't go into why
I'm using Access -- and can't get it to run in share mode.

If I have opened the website, and I try to edit the database, I get a
message saying the database is in read only because it's being used
elsewhere. Even if I close the website, close the program, close everything
I can think of, I still get the error. I always have to reboot.

If I add Mode=Share Deny None to the connection string, I get an aspnet
error that says "System.Data.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file
'c:\inetpub\wwwroot\charliesgourmetbaking\cgb.mdb' . It is already opened
exclusively by another user, or you need permission to view its data."

I have permission, I'm using the Admin logon in the connection string and
there is no password, I have never set a logon or passwords to this Access
database.

Any ideas what I can do to keep the database from being locked? It's a real
pain to make a change, run the site then I have to boot again if I want to
make another change.

Thanks & let me know if this is better in an Access newsgroup, but I think
it's an asp method to unlock Access, no?

Nov 18 '05 #2
One thing you did not close was the aspnet process that was using the
database. The next time you want this happens, do a ctrl-alt-delete and
bring up the running processes tab. Click on the Image Name column to order
the processes by name. You should see something like aspnet_wp.exe. Stop
this process.
"et" <ea*************@yahoo.com> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
I have an aspnet program that uses an Access database -- I won't go into
why
I'm using Access -- and can't get it to run in share mode.

If I have opened the website, and I try to edit the database, I get a
message saying the database is in read only because it's being used
elsewhere. Even if I close the website, close the program, close
everything
I can think of, I still get the error. I always have to reboot.

If I add Mode=Share Deny None to the connection string, I get an aspnet
error that says "System.Data.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file
'c:\inetpub\wwwroot\charliesgourmetbaking\cgb.mdb' . It is already opened
exclusively by another user, or you need permission to view its data."

I have permission, I'm using the Admin logon in the connection string and
there is no password, I have never set a logon or passwords to this Access
database.

Any ideas what I can do to keep the database from being locked? It's a
real
pain to make a change, run the site then I have to boot again if I want to
make another change.

Thanks & let me know if this is better in an Access newsgroup, but I think
it's an asp method to unlock Access, no?

Nov 18 '05 #3
et
Okay, but how do I control that when I'm using a host ISP, I don't have
access to modify their user accounts.
"Brad Roberts" <Br*********@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
For Access databases, the Windows account(perhaps the anonymous acct,
depending on your security settings) will need almost complete access to the directory where the datbase is. This is because Access uses a data file(s) to keep track of multi-user access to the database. The account under which the application is running will need to be able to perform the modifications,
etc., to the temporary files used by Access.

"et" wrote:
I have an aspnet program that uses an Access database -- I won't go into why I'm using Access -- and can't get it to run in share mode.

If I have opened the website, and I try to edit the database, I get a
message saying the database is in read only because it's being used
elsewhere. Even if I close the website, close the program, close everything I can think of, I still get the error. I always have to reboot.

If I add Mode=Share Deny None to the connection string, I get an aspnet
error that says "System.Data.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file
'c:\inetpub\wwwroot\charliesgourmetbaking\cgb.mdb' . It is already opened
exclusively by another user, or you need permission to view its data."

I have permission, I'm using the Admin logon in the connection string and there is no password, I have never set a logon or passwords to this Access database.

Any ideas what I can do to keep the database from being locked? It's a real pain to make a change, run the site then I have to boot again if I want to make another change.

Thanks & let me know if this is better in an Access newsgroup, but I think it's an asp method to unlock Access, no?

Nov 18 '05 #4
et
And I never had this problem before going to .net, so I'm thinking that the
program is not closing it like it should, although I use a dispose.
"Brad Roberts" <Br*********@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
For Access databases, the Windows account(perhaps the anonymous acct,
depending on your security settings) will need almost complete access to the directory where the datbase is. This is because Access uses a data file(s) to keep track of multi-user access to the database. The account under which the application is running will need to be able to perform the modifications,
etc., to the temporary files used by Access.

"et" wrote:
I have an aspnet program that uses an Access database -- I won't go into why I'm using Access -- and can't get it to run in share mode.

If I have opened the website, and I try to edit the database, I get a
message saying the database is in read only because it's being used
elsewhere. Even if I close the website, close the program, close everything I can think of, I still get the error. I always have to reboot.

If I add Mode=Share Deny None to the connection string, I get an aspnet
error that says "System.Data.OleDb.OleDbException: The Microsoft Jet
database engine cannot open the file
'c:\inetpub\wwwroot\charliesgourmetbaking\cgb.mdb' . It is already opened
exclusively by another user, or you need permission to view its data."

I have permission, I'm using the Admin logon in the connection string and there is no password, I have never set a logon or passwords to this Access database.

Any ideas what I can do to keep the database from being locked? It's a real pain to make a change, run the site then I have to boot again if I want to make another change.

Thanks & let me know if this is better in an Access newsgroup, but I think it's an asp method to unlock Access, no?

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: varlagas | last post by:
We disabled the antivirus software but the problem persists. Any clues? Many thanks in advance! Panagiotis Varlagas ======================================================================= ...
2
by: Phil | last post by:
sorry for repost but it is not showing up on my server. How can one share tables over local net where one can read and write to them and others can only read. basically I am unfamiliar with...
1
by: jy | last post by:
I have converted my Access database into *.mde format. However, my colleague can’t seem to open the file. The message shows that another user has opened it in exclusive mode. However, the file is...
1
by: Bob Alston | last post by:
Having problems sharing an Access database on a Windows 2000 PC. The other PC is windows 98 (as I recall) but NOT windows 2000! The 2nd PC has a shortcut to the MDB on the primary PC. The MDB...
8
by: Kissi Asiedu | last post by:
I have a database in a shared folder, however users with permission can only access the database in read-only format. What have I done wrong? This is on Win Xp Pro and Access 2003. Please help. ...
9
by: Peri | last post by:
Dear All, Is there a way in which 2 application can share a common memory location to access static data? Say for example I have a product master data that is available in a single place, and...
0
by: ARC | last post by:
Hello all, This is really a computer sharing / network question, so sorry for posting here; it's the only newsgroup I post in. I have a customer with a database file on a vista machine under...
11
by: limperger | last post by:
Hello everybody! I have just found out that the sharing properties of a single database (mdb file on a network), accessed by 3 users, change depending on the user accessing the database. That is,...
6
by: Iain King | last post by:
Hi. I'm using the win32 module to access an Access database, but I'm running into the File Sharing lock count as in http://support.microsoft.com/kb/815281 The solution I'd like to use is the one...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.