Oledb exceptions


I am getting following error   during execution (using ms vs 2008 , sql  server 2005 and  MS access 2007)

Could not find file 'C:\Users\ADMIN\Desktop\kar\Leave Management System\LMS\bin\Debug\LMS.accdb'.

LMS .mdb  file was exists in correct folder  

Plz find app.config code

<?xml version="1.0" encoding="utf-8" ?>
        <add name="LMS.Properties.Settings.LMSConnectionString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source= C:\Users\ADMIN\Desktop\kar\leave Management System \LMS\bin\Debug\LMS.mdb;Persist Security Info=True"
            providerName="System.Data.OleDb" />
        <add name="LMS.Properties.Settings.LMSConnectionString1" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\ADMIN\Desktop\kar\leave Management System\LMS\bin\Debug\DB\LMS.mdb;Persist Security Info=True"
            providerName="System.Data.OleDb" />

Open in new window

What is difference between .mdb    and  .accdb file extension? Is there any version conflicts for ms access .
prashanth agsoftware engineer Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
For mdb files you probably need this:


The ACE driver is for accdb files.

Lokesh B RDeveloperCommented:

try with this

        <add name="LMS.Properties.Settings.LMSConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source= C:\Users\ADMIN\Desktop\kar\leave Management System \LMS\bin\Debug\LMS.mdb;Persist Security Info=True"

Find more here

David Johnson, CD, MVPOwnerCommented:
accb is access data file
mdb is sql server data file
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

prashanth agsoftware engineer Author Commented:
HI all,

 i update  code as you mentioned but it shows same error
Gustav BrockCIOCommented:
> accb is access data file
> mdb is sql server data file

Two errors out of two, one missing.

mdf: SQL Server file
mdb: Access database file, Jet <= A2003
accdb: Access database file, Ace >= A2007

prashanth agsoftware engineer Author Commented:
ok, i am missing either  Microsoft.Ace.OleDb driver or ACEOLEDB.DLL dll file .
please help me out where to download and how to install ?
Gustav BrockCIOCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.