2015-08-17, 10:42 PM
I am trying to use Nutility.dll in my app, but if I try to run my executable anywhere except for program files\NPVR, I get this exception:
{"The type initializer for 'NUtility.DatabaseHelper' threw an exception."}
Which has an inner exception of
{"The type initializer for 'System.Data.SQLite.SQLiteFactory' threw an exception."}
If I compile my exe and put it in the program files\npvr directory, it runs fine. Can anyone tell me how to make it so my exe can run anywhere (including the debugger)? Is there something I can do to my code so it can find the SQLite database correctly, if that is why it is failing?
Thanks,
Dan
{"The type initializer for 'NUtility.DatabaseHelper' threw an exception."}
Which has an inner exception of
{"The type initializer for 'System.Data.SQLite.SQLiteFactory' threw an exception."}
If I compile my exe and put it in the program files\npvr directory, it runs fine. Can anyone tell me how to make it so my exe can run anywhere (including the debugger)? Is there something I can do to my code so it can find the SQLite database correctly, if that is why it is failing?
Thanks,
Dan