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

  • SEARCH
  • Home
  • 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 6206935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:32:20+00:00 2026-05-24T05:32:20+00:00

So I created a simple WPF application that allows a user to INSERT a

  • 0

So I created a simple WPF application that allows a user to INSERT a string into a SQLite database (a .S3DB file). The user can also SELECT a string from the database and DELETE the string from the database…very simple application.

I want to distribute this simple application, so I’ve created setup.exe file for the application by creating a new project and using the setup wizard on VS2010. When the user installs the application, it creates a “TestDatabase” folder in the Program Files directory and adds these two files along with the .exe file:

  1. System.Data.SQLite.DLL file (since it’s a Detected dependency)
  2. TestDatabase.s3db file (A test database for the user to use)

When I install it on the computer I’m developing on…everything works. However, when I install it on another computer, it crashes when I try to open the database from the application (which is stored in C:\Program Files (x86)\TestDatabase\TestDatabase.s3db).

I was wondering if someone can help solve this problem? Thanks.

  • 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-05-24T05:32:21+00:00Added an answer on May 24, 2026 at 5:32 am

    I realized that the reason why it was crashing when I opened the database is because I didn’t install the setup package on the new computer I was testing on. The setup package includes all the runtime components and dependencies. The setup packages can be found here:

    http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

    Also, ravenspoint, RandomEngy, and bryanbcook…you guys were right. Reading/writing a database from the Program Files folder is a bad idea because of the permission problem that can occur when accessing the database from the Program Files folder. So I saved my database in the AppData folder where the database can be read/written without any permission problems.

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

Sidebar

Related Questions

All, I have a WPF application built upon SQLite database and user/application Configuration settings.
I've created a simple WPF application which has two Windows. The user fills in
I've created a simple desktop application in C# 3.0 to learn some C#, wpf
I created this simple textpad program in WPF/VB.NET 2008 that automatically saves the content
i would like to create a simple winforms or wpf application where i can
I have created a simple (commercial) WPF application and want to distribute it with
I'm making a simple WPF application with shapes that are drawn on a canvas.
I'm new to silverlight and wpf programming I've just created a simple storyboard in
How to manually create Friendly URLs? (PHP) So I have created simple php file
I created a simple .NET windows application in Visual Studio 2005 and on just

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.