Kodi Community Forum
TVServerKodi SQLite - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: MediaPortal (https://forum.kodi.tv/forumdisplay.php?fid=171)
---- Thread: TVServerKodi SQLite (/showthread.php?tid=234092)

TVServerKodi SQLite - brian.campo - 2015-08-03

Not sure if this is the right forum to post or not so please feel free to move as needed.

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 am not sure how to attach the config file and below is the trace that is generated in the command window. Any help is greatly appreciated.

TvServer Debug EXE:
Connected to the MediaPortal TVServer running on: 'localhost'
MediaPortal TVServer version:
Referenced assemblies:
TvControl version=
TvDatabase version=
TvLibrary version=
SQLiteBig Grinata Source=C:\ProgramData\Team MediaPortal\MP2-Server\Database\MP2TVE_3.
Set Gentle framework provider to SQLite
Set Gentle framework provider string to Data Source=C:\ProgramData\Team MediaPor
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
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
--- 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
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.

RE: TVServerKodi SQLite - sdfg - 2015-08-03

Tried the same, also asked Margro.
Very interested in new features of tvserver 3.5 with Kodi
It seems that there are many differences, not only the database, also plugins has changed.
Better ask mm1352000 (Tvserver 3.5 developer) and margro (tvserverkodi plugin).

This forum uses Lukasz Tkacz MyBB addons.