attaching a microsoft access database to a clickonce deployed application

Posted on 2011-10-27
Last Modified: 2012-05-12
I have attached a microsoft access database to a clickonce application though propertis, publish, application files,  database  set to include and required.

I get the error messege "Disk or network error" when i try to un the application.

Question by:Anthony Matovu
    LVL 33

    Accepted Solution

    LVL 83

    Expert Comment

    What path do you use in your connection strings? Is it relative path?
    LVL 1

    Author Comment

    by:Anthony Matovu

    I got this from jppinto's post

            If ApplicationDeployment.IsNetworkDeployed Then
                dataPath = ApplicationDeployment.CurrentDeployment.DataDirectory

                dataPath = System.Windows.Forms.Application.StartupPath & "\Resources"
                dataPath = System.IO.Path.Combine(dataPath, "fxbDbase.mdb")
            End If
    LVL 83

    Assisted Solution

    Is the db in same folder as exe when deployed? Use just the dbname then without path.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    737 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

    20 Experts available now in Live!

    Get 1:1 Help Now