TVServerKodi with SQLITE (1 Viewer)

briancampo

Portal Member
December 22, 2014
10
1
50
Home Country
United States of America United States of America
Not sure if this is the right forum to post or not so apologies if this is out of context.

I am trying to get TVServerKodi plugin to work with MP2. I couldn't figure out how to setup mysql with MP2 so I started trying to see if I could get the plugin to work with SQLite. I modified the Gentle.config file as suggested with TVServerKodi.exe and added Gentle.Provider.SQLite to the folder but am still getting errors when trying to run the exe.

I attached the config file and below is the trace that is generated in the command window. Any help is greatly appreciated.

TvServer Debug EXE: 1.10.0.128
Connected to the MediaPortal TVServer running on: 'localhost'
MediaPortal TVServer version: 1.12.0.0
Referenced assemblies:
TvControl version=1.10.0.0
TvDatabase version=1.10.0.0
TvLibrary version=1.10.0.0
SQLite:Data Source=C:\ProgramData\Team MediaPortal\MP2-Server\Database\MP2TVE_3.
s3db;Pooling=true;FailIfMissing=true;Version=3
Set Gentle framework provider to SQLite
Set Gentle framework provider string to Data Source=C:\ProgramData\Team MediaPor
tal\MP2-Server\Database\MP2TVE_3.s3db;Pooling=true;FailIfMissing=true;Version=3
An exception occurred while connecting to the database. Did you select the right
backend? TVServerKodi default=MySQL; change your Gentle.conf file if you are us
ing MSSQL.
The exception: System.TypeInitializationException: The type initializer for 'Gen
tle.Framework.ProviderFactory' threw an exception. ---> System.Reflection.Target
InvocationException: Exception has been thrown by the target of an invocation. -
--> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of
the requested types. Retrieve the LoaderExceptions property for more informatio
n.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Gentle.Framework.ProviderRegistry.GetProviderInfo(Assembly assembly)
at Gentle.Framework.ProviderRegistry.GetProviderInfo(String assemblyName)
at Gentle.Framework.ProviderRegistry.RegisterProvider(String name, String ass
embly)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments,
Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Objec
t[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[] parameters, CultureInfo culture)
at Gentle.Common.MethodInvoker.Invoke(Object target, Object[] parameterValues
)
at Gentle.Common.MethodDispatcher.Invoke(Object target, Hashtable parameters)

at Gentle.Common.CallbackTarget.Configure(Object target, XmlNode node)
at Gentle.Common.CallbackTarget.Configure(Object target, XmlNodeList nodes)
at Gentle.Common.ConfigurationMap.Configure(IList handlers, Object obj)
at Gentle.Common.Configurator.Configure(String configStoreName, Object instan
ce)
at Gentle.Framework.ProviderRegistry..ctor()
at Gentle.Framework.ProviderFactory..cctor()
--- End of inner exception stack trace ---
at Gentle.Framework.ProviderFactory.SetDefaultProvider(String providerName)
at TVServerKodi.Commands.Program.Main(String[] args)
Starting debug version of the TVServerKodi plugin
The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception.
Press Enter to exit.
 

Attachments

  • Gentle.config.txt
    6 KB
  • Gentle.config.txt
    6 KB

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hello again Brian

    I doubt I can help you with this. Just wanted to point out that the gentle.config contains an example connection string which is quite different to yours:
    <DefaultProvider name="SQLite" connectionString="URI=file:c:/Code/Gentle.NET/Source/Gentle.Framework.Tests/Database Files/Gentle_SQLite.db" />

    For example, you're using "data source" where the example is using "URI" etc.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    @briancampo I'm not sure if I understood you correctly. So let me explain the situation:

    If you install MP2 (SR'15 or newer snapshots), the default DB system is Sqlite already. The used gentle.config contains a valid sqlite connect string already (see https://github.com/morpheusxx/Media...ne.Core3/content/References/Gentle.config#L62).

    There were reports already, that MP2 TV plugin can also work with an existing other database (SQLServer or MySQL). Therefor the gentle.config of MP2 has to be modified. It is stored in C:\ProgramData\Team MediaPortal\MP2-Server\SlimTVCore\Gentle.config (or C:\ProgramData\Team MediaPortal\MP2-Server\SlimTVCore\v3.0\Gentle.config for dev snapshots!).

    Limitation:
    If you try to get Sqlite working with a "standard MP1 installation" (or "TvServerKodi.exe", I don't know what this is) this will not work. I know this, because I had to fix many code parts to properly support Sqlite for MP2. If a dev wants to check the changes, take a look at: https://github.com/morpheusxx/MediaPortal-1/commits/FEAT_TVE3_Sqlite
     

    briancampo

    Portal Member
    December 22, 2014
    10
    1
    50
    Home Country
    United States of America United States of America
    morpheus_xx I have a feeling it is your limitation description that is the problem.

    I haven't seen any recent commits on the project so it might be that they have not been looking into the new MP2 for the plugin. If I can get some time I might take a look at what it will take to update it with MP2 TVE3.

    thanks for the insight
     

    hofi

    MP Donator
  • Premium Supporter
  • February 19, 2009
    301
    46
    Ardagger Markt
    Home Country
    Austria Austria
    With MPII-TVE3 the KODI Plugin ist working, but without EPG-Data in Kodi.
    I tested with a W10 Desktop, W10 Tablet and Android Tablet, TV is running perfect but no EPG.
    This for your Info!
     

    jhb

    Portal Pro
    September 19, 2006
    121
    2
    Gothenburg
    Home Country
    Sweden Sweden
    EPG seems to still not be working based on the discussions on Kodi forum.

    Does anyone have a workaround for this? I have huge issues with the MP1-TV-server and MP2 server at least works, so I prefer the MP2 one...
     

    badboyxx

    Portal Pro
    June 15, 2012
    728
    97
    Home Country
    Germany Germany
    If I may engage myself I have a question. I am also interested to use Kodi but never wanted to install a second "Mediaportal". How is TvServerKodi working? Can you use it out-of-the-box? I mean when I'm using MP2 LiveTv can I directly switch to Kodi to watch tv with my remote?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    EPG seems to still not be working based on the discussions on Kodi forum.

    Does anyone have a workaround for this? I have huge issues with the MP1-TV-server and MP2 server at least works, so I prefer the MP2 one...
    Can you link to this discussion? If a Kodi dev has questions he could ask here :)
     

    Users who are viewing this thread

    Top Bottom