Invalid Cast Exception when starting TVServerKodi
#1
Hi,

i'm trying to start the TVServerKodi plugin from TVE3 in MediaPortal 2 but it doesnt seems to start....

Here is the log from Server.log in C:\ProgramData\Team MediaPortal\MP2-Server\Log :
Quote:[2016-04-10 14:06:39,039] [109 ] [Main ] [INFO ] - ApplicationCore: Launching in AppDomain MP2-Server.exe...
[2016-04-10 14:06:39,086] [156 ] [Main ] [INFO ] - ApplicationCore: Comments: MediaPortal 2 Backend Server
[2016-04-10 14:06:39,086] [156 ] [Main ] [INFO ] - ApplicationCore: Copyright: Copyright © Team MediaPortal 2007 - 2016
[2016-04-10 14:06:39,086] [156 ] [Main ] [INFO ] - ApplicationCore: Version: 2.16.03.7764
[2016-04-10 14:06:39,086] [156 ] [Main ] [INFO ] - ApplicationCore: Source: origin/SpringRelease16_RC1-c4a1af
[2016-04-10 14:06:39,086] [156 ] [Main ] [INFO ] - ApplicationCore: ----------------------------------------------------------
[2016-04-10 14:06:39,086] [156 ] [Main ] [DEBUG] - ApplicationCore: Registering ILogger service
[2016-04-10 14:06:39,086] [156 ] [Main ] [DEBUG] - ApplicationCore: Registering ISettingsManager service
[2016-04-10 14:06:39,102] [171 ] [Main ] [DEBUG] - ApplicationCore: Registering IImpersonationService
[2016-04-10 14:06:39,102] [171 ] [Main ] [DEBUG] - ApplicationCore: Registering IRegistry service
[2016-04-10 14:06:39,102] [171 ] [Main ] [DEBUG] - ApplicationCore: Registering IThreadPool service
[2016-04-10 14:06:39,102] [171 ] [Main ] [DEBUG] - ApplicationCore: Registering IMessageBroker service
[2016-04-10 14:06:39,102] [171 ] [Main ] [DEBUG] - ApplicationCore: Registering IPluginManager service
[2016-04-10 14:06:39,118] [187 ] [Main ] [DEBUG] - ApplicationCore: Registering ILocalization service
[2016-04-10 14:06:39,118] [187 ] [Main ] [DEBUG] - StringManager: Loading settings
[2016-04-10 14:06:39,118] [187 ] [Main ] [INFO ] - StringManager: Culture not set. Using culture: 'fr-FR'
[2016-04-10 14:06:39,133] [203 ] [Main ] [DEBUG] - ApplicationCore: Registering ITaskScheduler service
[2016-04-10 14:06:39,180] [250 ] [Main ] [DEBUG] - ApplicationCore: Registering IMediaAccessor service
[2016-04-10 14:06:39,211] [281 ] [Main ] [DEBUG] - ApplicationCore: Registering IImporterWorker NewGen service
[2016-04-10 14:06:39,243] [312 ] [Main ] [DEBUG] - ApplicationCore: Registering IResourceServer service
[2016-04-10 14:06:39,258] [328 ] [Main ] [INFO ] - ThreadPool.Init()
[2016-04-10 14:06:39,258] [328 ] [Main ] [DEBUG] - ThreadPool.StartThreads(): Thread Thread10 started
[2016-04-10 14:06:39,258] [328 ] [Main ] [DEBUG] - ApplicationCore: Registering IResourceMountingService
[2016-04-10 14:06:39,274] [343 ] [Main ] [DEBUG] - ApplicationCore: Registering IRemoteResourceInformationService
[2016-04-10 14:06:39,274] [343 ] [Main ] [DEBUG] - ApplicationCore: Registering IThumbnailGenerator service
[2016-04-10 14:06:39,274] [343 ] [Main ] [DEBUG] - BackendExtension: Registering ISystemResolver service
[2016-04-10 14:06:39,274] [343 ] [Main ] [INFO ] - SystemResolver: Local system id is 'a2850a30-954a-4306-8b98-e54ce8ae2654'
[2016-04-10 14:06:39,274] [343 ] [Main ] [DEBUG] - BackendExtension: Registering IDatabaseManager service
[2016-04-10 14:06:39,274] [343 ] [Main ] [DEBUG] - BackendExtension: Registering IMediaLibrary service
[2016-04-10 14:06:39,289] [359 ] [Main ] [DEBUG] - BackendExtension: Registering IMediaItemAspectTypeRegistration service
[2016-04-10 14:06:39,289] [359 ] [Main ] [DEBUG] - BackendExtension: Registering IBackendServer service
[2016-04-10 14:06:39,352] [421 ] [Main ] [DEBUG] - BackendExtension: Registering IClientManager service
[2016-04-10 14:06:39,352] [421 ] [Main ] [DEBUG] - BackendExtension: Registering IUserProfileDataManagement service
[2016-04-10 14:06:39,352] [421 ] [Main ] [DEBUG] - ApplicationLauncher: Starting core
[2016-04-10 14:06:39,368] [437 ] [Main ] [INFO ] - PluginManager: Initialize
[2016-04-10 14:06:39,368] [437 ] [Main ] [INFO ] - PluginManager: Reflecting Core API
[2016-04-10 14:06:39,368] [437 ] [Main ] [DEBUG] - PluginManager: Loading plugins
[2016-04-10 14:06:39,399] [468 ] [Main ] [DEBUG] - PluginManager: Initialized
[2016-04-10 14:06:39,399] [468 ] [Main ] [INFO ] - PluginManager: Startup
[2016-04-10 14:06:39,399] [468 ] [Main ] [DEBUG] - PluginManager: Checking dependencies
[2016-04-10 14:06:39,430] [500 ] [Main ] [DEBUG] - PluginManager: Trying to enable plugin 'AudioCDResourceProvider' [Version: 1.0; Authors: Albert; ID: '87316ce6-904a-48d3-90f0-bbef3e9d007c']
[2016-04-10 14:06:39,430] [500 ] [Main ] [DEBUG] - PluginManager: Trying to enable plugin 'BassLibraries' [Version: 1.0; Authors: un4seen, Team MediaPortal; ID: '2ba6f93c-b2a9-4795-a99c-ba19126b1359']
[2016-04-10 14:06:39,446] [515 ] [Main ] [INFO ] - PluginManager: Plugin 'BassLibraries' [Version: 1.0; Authors: un4seen, Team MediaPortal; ID: '2ba6f93c-b2a9-4795-a99c-ba19126b1359'] enabled.
[2016-04-10 14:06:39,446] [515 ] [Main ] [INFO ] - PluginManager: Plugin 'AudioCDResourceProvider' [Version: 1.0; Authors: Albert; ID: '87316ce6-904a-48d3-90f0-bbef3e9d007c'] enabled.
.........
[2016-04-10 14:06:42,086] [3156 ] [30 ] [INFO ] - TV Service: Starting
[2016-04-10 14:06:42,086] [3156 ] [TVService] [DEBUG] - TVService v2.16.03.7764 is starting up on Windows 8 [6.2.9200.0]
[2016-04-10 14:06:42,086] [3156 ] [PowerEventThread] [DEBUG] - TV service PowerEventThread message loop is running
[2016-04-10 14:06:42,086] [3156 ] [TVService] [INFO ] - Controller: Initializing TVServer
[2016-04-10 14:06:42,086] [3156 ] [TVService] [INFO ] - Controller: 1 init attempt
[2016-04-10 14:06:42,102] [3171 ] [TVService] [INFO ] - C:\ProgramData\Team MediaPortal\MP2-Server\SlimTVCore\v3.0\gentle.config
[2016-04-10 14:06:42,118] [3187 ] [TVService] [INFO ] - Controller: using SQLite database connection: Data So
[2016-04-10 14:06:42,133] [3203 ] [TVService] [DEBUG] - Controller: started at OXYMEDIA10
[2016-04-10 14:06:42,133] [3203 ] [TVService] [INFO ] - Controller: local ip address:192.168.1.113
[2016-04-10 14:06:42,274] [3343 ] [TVService] [INFO ] - Controller: server running on 192.168.1.113
[2016-04-10 14:06:42,305] [3375 ] [TVService] [DEBUG] - Initialise BDA device detection graph
[2016-04-10 14:06:42,399] [3468 ] [TVService] [INFO ] - Starting async device detection...
[2016-04-10 14:06:42,399] [3468 ] [TVService] [INFO ] - Controller: add device RadioWebStream Card (builtin) (builtin)
[2016-04-10 14:06:42,414] [3484 ] [TVService] [DEBUG] - Controller: creating standard handler
[2016-04-10 14:06:42,430] [3500 ] [TVService] [DEBUG] - Controller: current timeshifting folder is "K:\TimeShifting"
[2016-04-10 14:06:42,430] [3500 ] [TVService] [DEBUG] - Detecting BDA/WDM devices...
[2016-04-10 14:06:42,446] [3515 ] [TVService] [DEBUG] - Detect legacy AM filter devices
[2016-04-10 14:06:42,461] [3531 ] [TVService] [INFO ] - Detected new MediaPortal IPTV tuner MediaPortal IPTV Source Filter @deviceConfusedw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{D3DD4C59-D3A7-4B82-9727-7B9203EB67C0}
[2016-04-10 14:06:42,461] [3531 ] [TVService] [INFO ] - Controller: add device MediaPortal IPTV Source Filter @deviceConfusedw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{D3DD4C59-D3A7-4B82-9727-7B9203EB67C0}
[2016-04-10 14:06:42,477] [3546 ] [TVService] [DEBUG] - Controller: creating standard handler
[2016-04-10 14:06:42,477] [3546 ] [TVService] [DEBUG] - Controller: current timeshifting folder is "K:\TimeShifting"
[2016-04-10 14:06:42,477] [3546 ] [TVService] [DEBUG] - Detect AM KS crossbar devices
[2016-04-10 14:06:42,477] [3546 ] [TVService] [DEBUG] - Detect AM KS TV tuner devices
[2016-04-10 14:06:42,493] [3562 ] [TVService] [DEBUG] - Detect BDA source devices
[2016-04-10 14:06:42,508] [3578 ] [TVService] [INFO ] - Detected new digital BDA tuner device Hauppauge WinTV-dualHD DVBT Tuner @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{7c8095ab-c110-40e5-9f4d-310858bbbf64}
[2016-04-10 14:06:42,508] [3578 ] [TVService] [DEBUG] - check type with MS NP
[2016-04-10 14:06:42,539] [3609 ] [TVService] [DEBUG] - network type count = 1
[2016-04-10 14:06:42,539] [3609 ] [TVService] [DEBUG] - network type 0 = 216c62df-6d7f-4e9a-8571-05f14edb766a
[2016-04-10 14:06:42,539] [3609 ] [TVService] [INFO ] - tuner type = DvbT
[2016-04-10 14:06:42,539] [3609 ] [TVService] [INFO ] - Controller: add device Hauppauge WinTV-dualHD DVBT Tuner @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{7c8095ab-c110-40e5-9f4d-310858bbbf64}
[2016-04-10 14:06:42,539] [3609 ] [TVService] [DEBUG] - Controller: creating standard handler
[2016-04-10 14:06:42,555] [3625 ] [TVService] [DEBUG] - Controller: current timeshifting folder is "K:\TimeShifting"
[2016-04-10 14:06:42,555] [3625 ] [TVService] [INFO ] - Detected new digital BDA tuner device Hauppauge WinTV-dualHD DVBC Tuner 2 @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{5fd033f5-8c4d-4de2-b4f2-e3d728a696e5}
[2016-04-10 14:06:42,555] [3625 ] [TVService] [DEBUG] - check type with MS NP
[2016-04-10 14:06:42,571] [3640 ] [TVService] [DEBUG] - network type count = 2
[2016-04-10 14:06:42,571] [3640 ] [TVService] [DEBUG] - network type 0 = 143827ab-f77b-498d-81ca-5a007aec28bf
[2016-04-10 14:06:42,571] [3640 ] [TVService] [DEBUG] - network type 1 = dc0c0fe7-0485-4266-b93f-68fbf80ed834
[2016-04-10 14:06:42,571] [3640 ] [TVService] [INFO ] - tuner type = DvbC
[2016-04-10 14:06:42,571] [3640 ] [TVService] [INFO ] - Controller: add device Hauppauge WinTV-dualHD DVBC Tuner 2 @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{5fd033f5-8c4d-4de2-b4f2-e3d728a696e5}
[2016-04-10 14:06:42,586] [3656 ] [TVService] [DEBUG] - Controller: creating standard handler
[2016-04-10 14:06:42,586] [3656 ] [TVService] [DEBUG] - Controller: current timeshifting folder is "K:\TimeShifting"
[2016-04-10 14:06:42,586] [3656 ] [TVService] [INFO ] - Detected new digital BDA tuner device Hauppauge WinTV-dualHD DVBC Tuner @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{b50b8116-da24-4f97-80d1-00451702c5f7}
[2016-04-10 14:06:42,586] [3656 ] [TVService] [DEBUG] - check type with MS NP
[2016-04-10 14:06:42,618] [3687 ] [TVService] [DEBUG] - network type count = 2
[2016-04-10 14:06:42,618] [3687 ] [TVService] [DEBUG] - network type 0 = 143827ab-f77b-498d-81ca-5a007aec28bf
[2016-04-10 14:06:42,618] [3687 ] [TVService] [DEBUG] - network type 1 = dc0c0fe7-0485-4266-b93f-68fbf80ed834
[2016-04-10 14:06:42,618] [3687 ] [TVService] [INFO ] - tuner type = DvbC
[2016-04-10 14:06:42,618] [3687 ] [TVService] [INFO ] - Controller: add device Hauppauge WinTV-dualHD DVBC Tuner @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{b50b8116-da24-4f97-80d1-00451702c5f7}
[2016-04-10 14:06:42,618] [3687 ] [TVService] [DEBUG] - Controller: creating standard handler
[2016-04-10 14:06:42,633] [3703 ] [TVService] [DEBUG] - Controller: current timeshifting folder is "K:\TimeShifting"
[2016-04-10 14:06:42,633] [3703 ] [TVService] [INFO ] - Detected new digital BDA tuner device Hauppauge WinTV-dualHD DVBT Tuner 2 @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{510162d9-2f7e-49e7-907b-dbd3a5a15eb9}
[2016-04-10 14:06:42,633] [3703 ] [TVService] [DEBUG] - check type with MS NP
[2016-04-10 14:06:42,649] [3718 ] [TVService] [DEBUG] - network type count = 1
[2016-04-10 14:06:42,649] [3718 ] [TVService] [DEBUG] - network type 0 = 216c62df-6d7f-4e9a-8571-05f14edb766a
[2016-04-10 14:06:42,649] [3718 ] [TVService] [INFO ] - tuner type = DvbT
[2016-04-10 14:06:42,649] [3718 ] [TVService] [INFO ] - Controller: add device Hauppauge WinTV-dualHD DVBT Tuner 2 @device:pnp:\\?\usb#vid_2040&pid_0265#0011526216#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{510162d9-2f7e-49e7-907b-dbd3a5a15eb9}
[2016-04-10 14:06:42,664] [3734 ] [TVService] [DEBUG] - Controller: creating standard handler
[2016-04-10 14:06:42,664] [3734 ] [TVService] [DEBUG] - Controller: current timeshifting folder is "K:\TimeShifting"
[2016-04-10 14:06:42,789] [3859 ] [TVService] [DEBUG] - Debug: Will listen on IPs filtered by []
[2016-04-10 14:06:42,789] [3859 ] [TVService] [DEBUG] - Debug: UPnPControlPoint: HTTP listener for IPv4 protocol started at address '0.0.0.0' on port '52021'
[2016-04-10 14:06:42,789] [3859 ] [TVService] [DEBUG] - Debug: UPnPControlPoint: HTTP listener for IPv6 protocol started at address '::' on port '52022'
[2016-04-10 14:06:42,805] [3875 ] [TVService] [INFO ] - Controller: setup streaming
[2016-04-10 14:06:42,930] [4000 ] [TVService] [DEBUG] - EPG: grabber disabled
[2016-04-10 14:06:42,946] [4015 ] [TVService] [DEBUG] - Scheduler: started
[2016-04-10 14:06:42,977] [4046 ] [TVService] [DEBUG] - Scheduler: loaded 4 schedules
[2016-04-10 14:06:42,993] [4062 ] [TVService] [DEBUG] - Scheduler: thread started.
[2016-04-10 14:06:42,993] [4062 ] [TVService] [DEBUG] - DiskManagement: started
[2016-04-10 14:06:43,039] [4109 ] [TVService] [INFO ] - ThumbProcessor.Start()
[2016-04-10 14:06:43,055] [4125 ] [TVService] [DEBUG] - Thumbs.LoadSettings()
[2016-04-10 14:06:43,055] [4125 ] [TVService] [DEBUG] - Thumbs.LoadSettings: Enable Thumbs: True
[2016-04-10 14:06:43,055] [4125 ] [TVService] [DEBUG] - Thumbs.LoadSettings: Share preview: False
[2016-04-10 14:06:43,055] [4125 ] [TVService] [DEBUG] - Thumbs.LoadSettings: Thumbs quality: 4
[2016-04-10 14:06:43,055] [4125 ] [TVService] [INFO ] - Thumbs.LoadSettings: using highest quality thumbnail mode
[2016-04-10 14:06:43,071] [4140 ] [TVService] [DEBUG] - ThumbProcessor.Start: Create thumbs folder
[2016-04-10 14:06:43,071] [4140 ] [TVService] [DEBUG] - Thumbs.CreateFolders()
.........................
[2016-04-10 14:06:43,602] [4671 ] [TVService] [INFO ] - TV Service: Load plugins
[2016-04-10 14:06:43,618] [4687 ] [TVService] [DEBUG] - PluginManager: Loaded ComSkipLauncher version:1.0.2.0 author:and-81
[2016-04-10 14:06:43,664] [4734 ] [TVService] [DEBUG] - PluginManager: Loaded ConflictsManager version:1.0.0.1 author:Broceliande
[2016-04-10 14:06:43,680] [4750 ] [TVService] [DEBUG] - PluginManager: Loaded PowerScheduler version:1.13.100.0 author:michael_t (based on the work of micheloe and others)
[2016-04-10 14:06:43,711] [4781 ] [TVService] [DEBUG] - PluginManager: Loaded ServerBlaster version:1.1.1.0 author:joboehl with ralphy mods
[2016-04-10 14:06:43,711] [4781 ] [TVService] [DEBUG] - PluginManager: Loaded TV Movie EPG import version:1.0.3.0 author:rtv
[2016-04-10 14:06:43,727] [4796 ] [TVService] [DEBUG] - Exception while loading ITvServerPlugin instances: TVServerKodi.TVServerKodiPlugin
[2016-04-10 14:06:43,727] [4796 ] [TVService] [DEBUG] - System.InvalidCastException: Impossible d'effectuer un cast d'un objet de type 'TVServerKodi.TVServerKodiPlugin' en type 'TvEngine.ITvServerPlugin'.
à TvService.PluginLoader.LoadPlugin(String strFile)
[2016-04-10 14:06:43,743] [4812 ] [TVService] [DEBUG] - Impossible d'effectuer un cast d'un objet de type 'TVServerKodi.TVServerKodiPlugin' en type 'TvEngine.ITvServerPlugin'.
..........................

Do i need some special settings for TVServerKodi to start ? I can see it and set parameters in MediaPortal 2 TV Configuration but it doesn't seems to start and listen on any the TCP port...

Thank you for your help.

Jean-Christophe

My environment : Windows 10
MediaPortal / TVService: 2.16.03.7764
TVServerKodi : 1.12.0.132
Kodi Client : Jarvis
Reply
#2
Hi,

TVServerKodi Release 133 solve the problem :
2318715 (post)

Thanks to margro.

Best regards
Jean-Christophe
Reply

Logout Mark Read Team Forum Stats Members Help
Invalid Cast Exception when starting TVServerKodi0