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 1
Support
other features (of release or svn versions)
'Gentle.Framework.ProviderFactory' threw an exception
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="K24A3" data-source="post: 1076432" data-attributes="member: 104233"><p>Yes I meant git. log4net was the only compile error after updating the dll's to 1.7 so I thought there was a slight chance log4net was causing the problem.</p><p></p><p>I tried adding Reset and SetDefaultProvider but it is throwing the same exception on both those lines. The strings are from gentle.config.</p><p></p><p>My app launches and then calls the below function when a button is clicked. All the other code is irrelevant.</p><p></p><p>[code]</p><p>using System;</p><p>using System.Collections.Generic;</p><p>using TvDatabase;</p><p>using Gentle.Framework;</p><p>using TvControl;</p><p>using TvEngine.Events; //ITvServerEvent</p><p>using TvLibrary;</p><p>using TvLibrary.Epg;</p><p>using TvLibrary.Implementations;</p><p>using TvLibrary.Interfaces;</p><p>using TvLibrary.Implementations.Analog;</p><p>using TvLibrary.Implementations.DVB;</p><p></p><p> TvBusinessLayer tvBusinessLayer = null;</p><p></p><p> public void Initialize()</p><p> {</p><p> try</p><p> {</p><p> </p><p> Global.Debug("Initializing TVData...");</p><p> </p><p> tvBusinessLayer = new TvBusinessLayer();</p><p> </p><p> if(tvBusinessLayer == null)</p><p> {</p><p> Global.Debug("ABORT: TvBusinessLayer is NULL");</p><p> return;</p><p> }</p><p> </p><p> Gentle.Framework.ProviderFactory.ResetGentle(true); // exception</p><p> Gentle.Framework.ProviderFactory.SetDefaultProvider("MySQL"); // exception</p><p> </p><p> string sConn = "Server=PC2;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=30;";</p><p> Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(sConn); // exception</p><p></p><p> </p><p> tvBusinessLayer.CreateGroup(TvConstants.TvGroupNames.AllChannels);</p><p></p><p></p><p> </p><p> Global.Debug("Number of channels: "+tvBusinessLayer.Channels.Count);</p><p> </p><p> </p><p> </p><p> Global.Debug("TVData populate channels...");</p><p> </p><p> </p><p></p><p> // Plugin events</p><p> SetupPluginEvents();</p><p> </p><p> </p><p> // Init flag OK</p><p> bInitialized = true;</p><p> Global.Debug("Initializing TVData...DONE");</p><p> </p><p> // Populate channels</p><p> PopulateChannels();</p><p> </p><p> }</p><p> catch(Exception ex)</p><p> {</p><p> Global.Debug("TVData Initialize EXCEPTION: "+ex.ToString());</p><p> Global.DelayedError(ex.Message);</p><p> }</p><p> }[/code]</p></blockquote><p></p>
[QUOTE="K24A3, post: 1076432, member: 104233"] Yes I meant git. log4net was the only compile error after updating the dll's to 1.7 so I thought there was a slight chance log4net was causing the problem. I tried adding Reset and SetDefaultProvider but it is throwing the same exception on both those lines. The strings are from gentle.config. My app launches and then calls the below function when a button is clicked. All the other code is irrelevant. [code] using System; using System.Collections.Generic; using TvDatabase; using Gentle.Framework; using TvControl; using TvEngine.Events; //ITvServerEvent using TvLibrary; using TvLibrary.Epg; using TvLibrary.Implementations; using TvLibrary.Interfaces; using TvLibrary.Implementations.Analog; using TvLibrary.Implementations.DVB; TvBusinessLayer tvBusinessLayer = null; public void Initialize() { try { Global.Debug("Initializing TVData..."); tvBusinessLayer = new TvBusinessLayer(); if(tvBusinessLayer == null) { Global.Debug("ABORT: TvBusinessLayer is NULL"); return; } Gentle.Framework.ProviderFactory.ResetGentle(true); // exception Gentle.Framework.ProviderFactory.SetDefaultProvider("MySQL"); // exception string sConn = "Server=PC2;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=30;"; Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(sConn); // exception tvBusinessLayer.CreateGroup(TvConstants.TvGroupNames.AllChannels); Global.Debug("Number of channels: "+tvBusinessLayer.Channels.Count); Global.Debug("TVData populate channels..."); // Plugin events SetupPluginEvents(); // Init flag OK bInitialized = true; Global.Debug("Initializing TVData...DONE"); // Populate channels PopulateChannels(); } catch(Exception ex) { Global.Debug("TVData Initialize EXCEPTION: "+ex.ToString()); Global.DelayedError(ex.Message); } }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
other features (of release or svn versions)
'Gentle.Framework.ProviderFactory' threw an exception
Contact us
RSS
Top
Bottom