c# - SQLite DB access using clickonce generated shortcut -


i'm using sqlite db in program, , runs without issue in vs or looking in debug folder. deploy clickonce application , after installing fails access database, exact error i'm getting is:

sqlite error

if go clickonce application installed , run program folder runs without issue, problem when using shortcut generated clickonce application.

anyone have thoughts on why? in advance insight.

code

dbcon = new sqliteconnection("datasource=|datadirectory|cubedb.sqlite3;"); sqlitecommand command = new sqlitecommand(sqlquery, dbcon); dbcon.open(); sqlitedatareader reader; try {    reader = command.executereader(); } catch (exception ex) {    messagebox.show("sql query failed.\n" + sqlquery + "\n" + ex.tostring(),                     "sql error",                      messageboxbutton.ok, messageboximage.error);     dbcon.close();    return; } 


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -