NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
Can't debug with app using Nutility (System.TypeInitializationException)

 
  • 0 Vote(s) - 0 Average
Can't debug with app using Nutility (System.TypeInitializationException)
danorum
Offline

Junior Member

Posts: 26
Threads: 4
Joined: Aug 2015
#1
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2015-08-17, 10:45 PM
It's probably missing one of the two dependent SQLite files dlls. When you run it from the NPVR directory, it finds them.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#3
2015-08-17, 10:46 PM
What are you trying to create?
danorum
Offline

Junior Member

Posts: 26
Threads: 4
Joined: Aug 2015
#4
2015-08-17, 10:53 PM
I am trying to create an app that converts my TV shows in the same way I have been doing with Media Center for a long time. I have most of the code already (for the processing part), but I just need to find the filenames and the guide metadata.

And that was it.. I just copied the 2 SQL Lite DLL's to my debug dir and now it works!

Thanks for the ultra quick response.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help using NUtility.dll drmargarit 4 3,984 2015-10-02, 11:27 PM
Last Post: mvallevand
  Trouble loading .NET System assemblies bgowland 3 2,342 2013-10-31, 02:37 AM
Last Post: bgowland
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,027 2013-03-24, 08:03 PM
Last Post: imilne
  Using Windows file system shortcuts ACTCMS 0 1,777 2010-01-26, 11:45 PM
Last Post: ACTCMS
  System.Data.DataSetExtensions mvallevand 4 9,751 2008-09-21, 06:02 AM
Last Post: mvallevand
  What SCM (Source Control Management) system do you use? JavaWiz 3 2,015 2008-08-19, 07:28 PM
Last Post: Manderson
  System.XML Deserialization whurlston 2 3,090 2007-12-26, 03:33 PM
Last Post: whurlston
  Using Visual Studio to debug running Plugins mkenyon2 3 2,073 2007-07-04, 06:52 PM
Last Post: McBainUK
  pluginHelper.ReturnToMainMenu(); throws System.OutOfMemoryException: Out of memory. reven 6 2,537 2006-02-21, 08:13 PM
Last Post: reven
  System.Windows.Forms.KeyEventArgs e tostring reven 1 2,531 2005-01-04, 02:45 PM
Last Post: KingArgyle

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode