Solved

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

Posted on 2013-11-01
4
1,430 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

863 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

24 Experts available now in Live!

Get 1:1 Help Now