evry1falls's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Members
Active Posts:
47 (0.05 per day)
Joined:
25-April 12
Profile Views:
1,202
Last Active:
User is offline Jan 24 2014 06:49 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   evry1falls I hate StckOverFlow.com

Posts I've Made

  1. In Topic: How to deploy application with access database in VS2010?

    Posted 13 Jan 2014

    Your problem doesn't have anything to do with MS Access installed or not at the machine that generates the error in the picture, as The error says [".........accdb" not a valid path. Make .... etc] which I'm 100% sure that it means that the file Myaccdb.accdb is not present in the target machine whether this machine has MS Access installed or not.
    The cause of such error can be many reasons, I.e :
    - You did not include the file.accdb in your setup package
    - You used explicit path definition [C:\.....\file.accdb] which refers to your own local files, instead of using variables application.startuppath "\folder\in-package\file.accdb"

    quick Solution :
    From target machine, create this folder(c:\DataFile\) and place (Myaccdb.accdb) file in it.

    Next time you deploy application relies on Database :
    Deploy your application and include the accdb file at the same place where it's placed in source code. Use Data Source = application.startuppath & "\Myaccdb.accdb" instead of what you use. Note (application.startuppath means [application folder\bin\debug\])

    The more complex your application will be the more readings you will attempt.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

evry1falls has no profile comments yet. Why not say hello?