Link to home
Start Free TrialLog in
Avatar of Anthony Matovu
Anthony MatovuFlag for Uganda

asked on

attaching a microsoft access database to a clickonce deployed application

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.

a
ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nasir Razzaq
What path do you use in your connection strings? Is it relative path?
Avatar of Anthony Matovu

ASKER


I got this from jppinto's post

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

            dataPath = System.Windows.Forms.Application.StartupPath & "\Resources"
            dataPath = System.IO.Path.Combine(dataPath, "fxbDbase.mdb")
        End If
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial