Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8838031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:53:03+00:00 2026-06-14T09:53:03+00:00

I am building an application in Visual Studio 2010 using .Net 4.0 and an

  • 0

I am building an application in Visual Studio 2010 using .Net 4.0 and an Access Database.

I’ve specified the existing path of my database i.e. D:/project/record.accdb. After building the application, when I install it on my own computer and run it, it gives me a database path error.

My application is working fine on clicking F5 (Debugging), except that it shows the error

“Path not found.”

I’ve build my project using the following steps:

  1. Build
  2. Build “project Name”
  3. Use CD/DVD for installation
  4. Finish

How can I fix this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:53:05+00:00Added an answer on June 14, 2026 at 9:53 am

    As it sounds, on your Dev PC it runs fine, but not on a different machine where you want to deploy it to.

    Check if you have Microsoft Access installed on the other PC (the one without Dev tools).
    Repeat your tests after you have installed Access.


    Update:
    You have written me recently that the path does not work. Try the following to create a valid datasource string:

    1. On the desktop, create a new empty text document (right-click, then select New>Text document)
    2. Rename that document so it has the extension .UDL, e.g. Access.UDL
    3. Double-Click on the file. "Data link properties" opens.
    4. Go to the first tab (Provider), select "Microsoft Office XX.X Access Database Engine OLE DB Provider" (where XX.X is the Office version you’re using)
    5. Go to the 2nd tab (Connection), in "1. Enter the data source and/or location of the data" you specify the full path to your Access database , e.g. C:\Documents and Settings\All Users\My Documents\Database1.accdb
    6. Click on the "Test connection" button to ensure your connection succeeds.
    7. Close the dialog with "OK".

    If you open the UDL file (in our example Access.UDL) using NOTEPAD afterwards, you see the correct datasource string:

    [oledb]

    ; Everything after this line is an OLE DB initstring

    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\All Users\My
    Documents\Database1.accdb;Persist Security Info=False

    You can use this string either directly in the C# code or you store it in your app.config file and load it. If the path should be dynamic you can do the following (the following example uses a hard-coded datasource string):

    var strDS=string.Format(
        "Data Source={0}\Database1.accdb;Persist Security Info=False", strPath);
    

    This will insert the path stored in the variable strPath into the datasource string strDS. As mentioned before, you could also load this string from the app.config.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an ASP.net application using Visual Studio Web Developer 2010 Express and have
In Visual Studio 2010, I have project A (asp.net application). Project A references project
Environment: Visual Studio Ultimate 2010 Windows XP WPF Desktop Application using .NET 4.0 We
I am using Microsoft Visual Studio 2010. When I am building my application in
I'm building a small application in Visual Studio 2010 with .Net 4.0 and C#
I am writing an ASP.NET web application using Visual Studio 2008. The project is
I'm building an application using Visual Studio 2010 in which I have to use
I'm building WinForms application using Visual Studio 2010. Every time I make a change
Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
We are currently building the framework for developing a C# .net application using visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.