PDA

View Full Version : Unhandled Exception setting up TV Listings.



boogmeister1
2018-06-07, 07:11 PM
I followed the instructions for installing the TV listings in the proper directory, however, when I go into settings and try to add a guide I get an "Unhandled Exception" error.

I'm not sure how to get past this error. Anyone have any ideas?

Graham
2018-06-08, 10:08 AM
... when I go into settings and try to add a guide I get an "Unhandled Exception" error.


The npvr.log has ...


2018-06-07 11:58:22.934 [DEBUG][1] TV Listings: Exception details: System.TypeInitializationException: The type initializer for 'TVListings.Backend' threw an exception. ---> System.IO.FileNotFoundException: TV Listings database not found

The TV Listings zip that was downloaded should have copied a file called "TV Listings.db3" into \Users\Public\NPVR\Plugins\TV Listings alongside the TV Listings DLL file.

boogmeister1
2018-06-10, 04:08 AM
That did it!

Thanks a ton!

tomhilton1
2018-07-19, 02:36 AM
Hi I am having the same problem when I click on the TVListings in the Menu. I do have both TV Listing.db3 and TVlisting.dll in the C:\Users\Public\NPVR\Plugins\TVListings folder.
What could be wrong? I am running version 3.9.2 (161119). The dates of the TV Listing.db3 is 2/25/2012 and the TV Listing.dll is 11/20/2016

tomhilton1
2018-07-19, 02:46 AM
Here is the complete Unhandled text:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'TVListings.Configuration.Config' threw an exception. ---> System.TypeInitializationException: The type initializer for 'TVListings.Backend' threw an exception. ---> System.IO.FileNotFoundException: TV Listings database not found
at TVListings.Backend.Init(XmlDocument config)
at TVListings.Backend..ctor()
at TVListings.Backend..cctor()
--- End of inner exception stack trace ---
at TVListings.Backend.get_PluginHelper()
at TVListings.Tools.ReturnToMainMenu()
--- End of inner exception stack trace ---
at TVListings.TVListings.Activate()
at NextPVR.ControllerForm.ActivateScreen(IScreenPlugi n screenPlugin)
at NextPVR.Menu.SlideOutMenu.HandleMenuItem(String menuItem)
at NextPVR.Menu.SlideOutMenu.OnClick(PointF location)
at NextPVR.ControllerForm.ControllerForm_MouseClick(O bject sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseClick(MouseEve ntArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at NextPVR.ControllerForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3131.0 built by: NET472REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
NextPVR
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NextPVR.exe
----------------------------------------
NUtility
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3120.0 built by: NET472REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
NShared
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NShared.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.85.0
Win32 Version: 1.0.85.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/System.Data.SQLite.DLL
----------------------------------------
System.Data.Entity
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Entity/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Entity.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Unmanaged
Assembly Version: 1.0.6158.18570
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/Unmanaged.DLL
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
SearchLite
Assembly Version: 3.0.6323.17055
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
SearchLite.XmlSerializers
Assembly Version: 3.0.6323.17055
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.dll
----------------------------------------
TV Listings
Assembly Version: 3.7.2.23171
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/NUtility.dll
----------------------------------------
SlimDX
Assembly Version: 4.0.13.43
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/SlimDX.DLL
----------------------------------------
taglib-sharp
Assembly Version: 2.0.4.0
Win32 Version: 2.0.4.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/taglib-sharp.DLL
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
ManagedUPnP
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/NPVR/ManagedUPnP.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

tomhilton1
2018-07-19, 03:20 AM
I just tried it on my other nextPVR installation which is version 4.2.2.2 with the same results. I even tried putting the TV Listing.db3 and Dll file directly under NPVR, and then NPVR Plugins, and under
NVPR/plugins/TV Listing/ all the the same exception error that it cannot file the DB3 file. I don't understand.

Graham
2018-07-19, 09:36 AM
I just tried it on my other nextPVR installation which is version 4.2.2.2 with the same results. I even tried putting the TV Listing.db3 and Dll file directly under NPVR, and then NPVR Plugins, and under
NVPR/plugins/TV Listing/ all the the same exception error that it cannot file the DB3 file. I don't understand.


The npvr.log has ...

2018-06-07 11:58:22.934 [DEBUG][1] TV Listings: Exception details: System.TypeInitializationException: The type initializer for 'TVListings.Backend' threw an exception. ---> System.IO.FileNotFoundException: TV Listings database not found

The TV Listings zip that was downloaded should have copied a file called "TV Listings.db3" into \Users\Public\NPVR\Plugins\TV Listings alongside the TV Listings DLL file.

What files are in the \Users\Public\NPVR\Plugins\TV Listings folder?

tomhilton1
2018-07-19, 08:09 PM
Tvlisting.db3 and tvlisting.dll

tomhilton1
2018-07-19, 08:13 PM
TV Listings.db3 and TVListing.dll
Sorry I missed the space in both in the previous reply

tomhilton1
2018-07-19, 08:19 PM
Also why does the zip file create a another plugins/TV Listing folder. Makes it where you have to play move files and folders to get the files in the proper location.

mvallevand
2018-07-19, 08:47 PM
Maybe you have a bad folder missing a space or something. Upload you logs and we can see.

Martin

tomhilton1
2018-07-20, 04:49 AM
So I gave up and deleted the NPVR program completely. I used Revo Uninstaller to make sure all files and registry entries was gone. I then reinstalled version 4.2.2.2 and completely configured the channels from scratch. The TV Guide works fine. Next I redownloaded the TV Listing zip file and unzipped it. I put the TV Listings.db3 and TV Listings.dll in D:\Users\Public\NPVR\Plugins\TV Listings. Please note that my users directory is on drive D, not drive C. I put the Fonts directory in D:\Users\Public\NPVR\Plugins\. I enable TV Listing and TV Recording in the Plugins Visible Menu Plugins. there is a - TV Listing listed under the Plugins in the Setting menu. I have attached the error message as unhandled_exception.txt
Is it possible I need some kind of redirection in the enviroments of the computer, so it knows where to look for the TV Listing files.

tomhilton1
2018-07-20, 10:59 PM
Here is the log files. 7Z refused to zip Record.log and web.log. What do I do to stop them from being used so that I can zip them for you?

Handy.Man
2018-07-21, 12:38 AM
Stop NPVR Service then the files can be zipped, or you can copy the folder then 7-zip it, then delete the copy of the folder.

tomhilton1
2018-07-21, 02:05 AM
Here is the whole logs directory zipped.

Graham
2018-07-21, 08:33 AM
Here is the whole logs directory zipped.

The npvr.log has ...


2018-07-20 16:28:48.297 [ERROR][1] TV Listings: error getting skin directory: The path is not of a legal form.
2018-07-20 16:28:48.297 [DEBUG][1] TV Listings: Exception details: System.ArgumentException: The path is not of a legal form.

The TV Listings zip that you downloaded contains two folders Plugins and Skin ... The contents of each of these two folders needs to be copied into the corresponding folders at D:\Users\Public\NPVR

The result should be that you have a "TV Listings" folders in D:\Users\Public\NPVR\Plugins (these copies appear to have worked okay) and also "TV Listings" and "TV Recordings" folders in D:\Users\Public\NPVR\Skin\Default.

tomhilton1
2018-07-21, 09:20 PM
Thank You that fixed it.