Solved

oledbconnection.open() - External component has thrown an exception.

Posted on 2013-11-01
4
1,417 Views
Last Modified: 2013-11-23
Hello,

It is expected behaviour that a oledbconnection.open() call to access database file (mdb) that also has ldb lock file will fail ?

Last week some code I had worked fine, this week it doesn’t and the only thing I can see that’s different is the existence of a lock file in the directory.

The error is being called on oledbconnection.open() and is:

External component has thrown an exception.

Any ideas?
0
Comment
Question by:andyw27
  • 2
4 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39617287
Delete the lock file then try again.

But ultimately you need to investigate why the locking file did not get deleted automatically.
When an Access db is opened, the locking file is created...
Likewise, when the db file is closed, the locking file should be deleted automatically...

JeffCoachman
0
 
LVL 12

Expert Comment

by:deanvanrooyen
ID: 39619970
thats weird I would suspect that even a lock would allow an open e.g. to read, what was the exception message?
0
 

Accepted Solution

by:
andyw27 earned 0 total points
ID: 39656758
Figured out the problem it was problem between the 32bit and 64bit version of office, fixed by installing the 64bit MDE with the passive switch.
0
 

Author Closing Comment

by:andyw27
ID: 39671078
Fixed myself
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now