473,398 Members | 2,389 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,398 software developers and data experts.

Runtime error while accessing .aspx page if .mdb database is open

Hi
I am using MS Access to store the data in an .mdb file. And I observe that, if the .mdb is open, I receive a runtime error whenever I/someone tries to access any of the .aspx pages that needs to access this .mdb. My .aspx pages are using OleDb for the data retrieval. I do not want those runtime errors. Please enlighten me as to how to get rid of those runtime errors. Thanks a ton in advance...
Nov 18 '05 #1
2 2466
You can't open an Access database from the file system (as the logged on
user) and from the Web application at the same time. There's a locking file
(*.ldb) that prevents this type of use.

Do all of your work through the Web pages and you'll have better luck.

Ken

"Gayathri" <an*******@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Hi,
I am using MS Access to store the data in an .mdb file. And I observe
that, if the .mdb is open, I receive a runtime error whenever I/someone
tries to access any of the .aspx pages that needs to access this .mdb. My
.aspx pages are using OleDb for the data retrieval. I do not want those
runtime errors. Please enlighten me as to how to get rid of those runtime
errors. Thanks a ton in advance...


Nov 18 '05 #2
I believe you can open database with MS Access. Just need to be cautious how
you do that.

1. Make sure that "open mode" is set to shared. in MS Access 2000
Tools/Option/Advanced

2. When you want to share MDB file the LDB file is created. The most common
mistake, when used from web application, is that people forget to give
"Create File" permission to ASP.NET account on the folder where MDB files
is.
The result is: LDB file is not created and database is opened in Exclusive
mode.
If you want it to work correctly you must give "Create File" permissions to
the ASP.NET account (or whatever account used) on the folder where MDB file
resides.

Good luck with Access, and as soon as you can switch to MS SQL or at least
MSDE.
George.


"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:ej*************@TK2MSFTNGP10.phx.gbl...
You can't open an Access database from the file system (as the logged on
user) and from the Web application at the same time. There's a locking file (*.ldb) that prevents this type of use.

Do all of your work through the Web pages and you'll have better luck.

Ken

"Gayathri" <an*******@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
Hi,
I am using MS Access to store the data in an .mdb file. And I observe
that, if the .mdb is open, I receive a runtime error whenever I/someone
tries to access any of the .aspx pages that needs to access this .mdb. My .aspx pages are using OleDb for the data retrieval. I do not want those
runtime errors. Please enlighten me as to how to get rid of those runtime errors. Thanks a ton in advance...

Nov 18 '05 #3

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

Similar topics

3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
5
by: Nathan Bloom | last post by:
Hi, I have a secured database that runs fine on the computer the database is installed on. I have several workstations with access runtime installed that also need access to the database. ...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
4
by: VB Programmer | last post by:
If I try ANY aspx pages on my server, even INVALID, bogus pages, I get a "Runtime Error". Any idea why? Here is the full message: Server Error in '/' Application....
4
by: Pritam Javale | last post by:
When using Datagrid ASP.NET pages, the time required to execute a report is much more greater than when the same report is generated using a ASP page. Also the ASPX page almost always gives a...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
7
by: Joe Rigley | last post by:
Hi, I have a custom class with a public method. I want to perform a repose.redirect if an error occurs in the public method GetUserRoles. Unfortunately, Visual Studio 2003 is throwing an error...
7
by: Jim McGivney | last post by:
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect to Microsoft Access database. The page loads, but when connection to the database is attempted to fill a datagrid the...
2
by: le0 | last post by:
guys, this is my first time to deploy website to the server, but every time i access the page this error always appears. ...
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.