home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
TVServerKodi with SQLITE
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="briancampo" data-source="post: 1146196" data-attributes="member: 151000"><p>Not sure if this is the right forum to post or not so apologies if this is out of context.</p><p></p><p>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.</p><p></p><p>I attached the config file and below is the trace that is generated in the command window. Any help is greatly appreciated. </p><p></p><p>TvServer Debug EXE: 1.10.0.128</p><p>Connected to the MediaPortal TVServer running on: 'localhost'</p><p>MediaPortal TVServer version: 1.12.0.0</p><p>Referenced assemblies:</p><p>TvControl version=1.10.0.0</p><p>TvDatabase version=1.10.0.0</p><p>TvLibrary version=1.10.0.0</p><p>SQLite<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />ata Source=C:\ProgramData\Team MediaPortal\MP2-Server\Database\MP2TVE_3.</p><p>s3db;Pooling=true;FailIfMissing=true;Version=3</p><p>Set Gentle framework provider to SQLite</p><p>Set Gentle framework provider string to Data Source=C:\ProgramData\Team MediaPor</p><p>tal\MP2-Server\Database\MP2TVE_3.s3db;Pooling=true;FailIfMissing=true;Version=3</p><p>An exception occurred while connecting to the database. Did you select the right</p><p> backend? TVServerKodi default=MySQL; change your Gentle.conf file if you are us</p><p>ing MSSQL.</p><p>The exception: System.TypeInitializationException: The type initializer for 'Gen</p><p>tle.Framework.ProviderFactory' threw an exception. ---> System.Reflection.Target</p><p>InvocationException: Exception has been thrown by the target of an invocation. -</p><p>--> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of</p><p> the requested types. Retrieve the LoaderExceptions property for more informatio</p><p>n.</p><p> at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)</p><p> at System.Reflection.RuntimeModule.GetTypes()</p><p> at System.Reflection.Assembly.GetTypes()</p><p> at Gentle.Framework.ProviderRegistry.GetProviderInfo(Assembly assembly)</p><p> at Gentle.Framework.ProviderRegistry.GetProviderInfo(String assemblyName)</p><p> at Gentle.Framework.ProviderRegistry.RegisterProvider(String name, String ass</p><p>embly)</p><p> --- End of inner exception stack trace ---</p><p> at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments,</p><p> Signature sig, Boolean constructor)</p><p> at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Objec</p><p>t[] parameters, Object[] arguments)</p><p> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke</p><p>Attr, Binder binder, Object[] parameters, CultureInfo culture)</p><p> at Gentle.Common.MethodInvoker.Invoke(Object target, Object[] parameterValues</p><p>)</p><p> at Gentle.Common.MethodDispatcher.Invoke(Object target, Hashtable parameters)</p><p></p><p> at Gentle.Common.CallbackTarget.Configure(Object target, XmlNode node)</p><p> at Gentle.Common.CallbackTarget.Configure(Object target, XmlNodeList nodes)</p><p> at Gentle.Common.ConfigurationMap.Configure(IList handlers, Object obj)</p><p> at Gentle.Common.Configurator.Configure(String configStoreName, Object instan</p><p>ce)</p><p> at Gentle.Framework.ProviderRegistry..ctor()</p><p> at Gentle.Framework.ProviderFactory..cctor()</p><p> --- End of inner exception stack trace ---</p><p> at Gentle.Framework.ProviderFactory.SetDefaultProvider(String providerName)</p><p> at TVServerKodi.Commands.Program.Main(String[] args)</p><p>Starting debug version of the TVServerKodi plugin</p><p>The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception.</p><p>Press Enter to exit.</p></blockquote><p></p>
[QUOTE="briancampo, post: 1146196, member: 151000"] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
TVServerKodi with SQLITE
Contact us
RSS
Top
Bottom