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

Error opening AccessDB from the newly spawned thread

Hi all,
I'm getting the following exception when trying to open an Access DB from
the new thread:

The Microsoft Jet database engine cannot open the file
'\\path\errorLog.mdb'. It is already opened exclusively by another user, or
you need permission to view its data.

The point is that the main thread can access that file no trouble at all
(hence it's coded that only a spawned thread should do this).
Apparantly some extra permissions should be granted but not sure.

Thanks
Nov 19 '05 #1
2 1000
If your web app can access it, you should not need anymore permission
setting.

What is your main thread doing with the database at the point of which you
attempt to open a second connection?

Landers

"alex444" <al*****@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
Hi all,
I'm getting the following exception when trying to open an Access DB from
the new thread:

The Microsoft Jet database engine cannot open the file
'\\path\errorLog.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

The point is that the main thread can access that file no trouble at all
(hence it's coded that only a spawned thread should do this).
Apparantly some extra permissions should be granted but not sure.

Thanks

Nov 19 '05 #2
Trying to localize the problem (which is hard to do on the provider's host
and as I said everything working fine on my dev box) I've dedicated one
access DB to be opened only from a new thread (this is where it fails), but
when I change the code to open that DB from the main thread it just works
fine.

Thank you
"Landley" wrote:
If your web app can access it, you should not need anymore permission
setting.

What is your main thread doing with the database at the point of which you
attempt to open a second connection?

Landers

"alex444" <al*****@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
Hi all,
I'm getting the following exception when trying to open an Access DB from
the new thread:

The Microsoft Jet database engine cannot open the file
'\\path\errorLog.mdb'. It is already opened exclusively by another user,

or
you need permission to view its data.

The point is that the main thread can access that file no trouble at all
(hence it's coded that only a spawned thread should do this).
Apparantly some extra permissions should be granted but not sure.

Thanks


Nov 19 '05 #3

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

Similar topics

15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
7
by: A P | last post by:
I receive an error like this: Server.MapPath() error 'ASP 0172 : 80004005' Invalid Path /conn.asp, line 2 The Path parameter for the MapPath method must be a virtual path. A physical path...
1
by: Neds | last post by:
I'm having a major problem with threads. I have a main application that dynamically loads plugins. One of the plugins receives SMS messages in a seperate thread. When an SMS comes in I need to...
6
by: news.microsoft.com | last post by:
I have a very multi-threaded Windows Forms application. There are many BeginInvoke calls, as well as Thread/ThreadStarts. My issue is that when I quit my application there are often threads...
1
by: Rachit | last post by:
Hi, I've a WebApp that calls Microsoft CRM WebServices to perform a particular action. In my WebApp I am spawning a new async thread for all the CRM related actions and sending the user to Thank...
4
by: mcwooq | last post by:
Hi, I just installed the VS.Studio 2005 Team Edition for Developper and encountered severe problems with debugging ASP.NET 2.0 projects. Even newly empty created ASP 2.0 projects can't debug...
13
by: lgbjr | last post by:
Hello All, I have some pictureboxes on a VB.NET form that are linked to an AccessDB. If the user wishes to open or edit an image, I need to save the image in the picturebox to a temp file, then...
17
by: kartheek | last post by:
hi friends, can any one out here help me by giving me the code to connect to an MSACCESS database using javascript.
3
by: Sarah | last post by:
Hi - Please be gentle. I am quite new to visual basic, but I have been going through tutorials and reading up. I found a code snippet on the internet that I wanted to see if I could re-purpose...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.