Oledb exceptions

HI

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" ?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <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" />
    </connectionStrings>
</configuration>

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?
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:

    Provider=Microsoft.Jet.OLEDB.4.0

The ACE driver is for accdb files.

/gustav
0
Lokesh B RDeveloperCommented:
Hi,

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

https://www.connectionstrings.com/access/
0
David Johnson, CD, MVPOwnerCommented:
accb is access data file
mdb is sql server data file
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

prashanth agsoftware engineer Author Commented:
HI all,

 i update  code as you mentioned but it shows same error
0
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

/gustav
0
prashanth agsoftware engineer Author Commented:
HI,
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 ?
0
Gustav BrockCIOCommented:
0

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.