in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Problem creating DB in ApplicationData folder.

Last post 12-20-2009 9:34 AM by fishnet37222. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-19-2009 9:38 PM

    Problem creating DB in ApplicationData folder.

    Hello,

    I'm trying to make my application work with a multiple user situation by creating the database in the user's Application Data folder.  I had no problem using the Environment class to get the required folder.  However, I get an SQLiteException whenever I try to create the database.  I'm not sure if the fact that I'm using Windows 7 64-bit has anything to do with it.  I'm inserting a cropped screenshot showing the exception.  Any help would be greatly appreciated.

    Dave

    screenshot of exception

  • 12-20-2009 8:49 AM In reply to

    Re: Problem creating DB in ApplicationData folder.

    There's not enough information here.  I need a full stack trace, along with the connection string you're using.

    Have you verified that the program has read/write/create/delete access to the folder?

     

  • 12-20-2009 9:08 AM In reply to

    Re: Problem creating DB in ApplicationData folder.

    I did a little test creating a simple text file in the same folder I was trying to create the database in and it didn't work either.  I should have done that before I posted here.
  • 12-20-2009 9:34 AM In reply to

    Re: Problem creating DB in ApplicationData folder.

    I just fixed the problem.  I had to create the subfolder of the AppData folder first.
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems