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:
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
Post a Comment