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
Quality Assurance
Bugreports
Archive
Recording not acepted
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="huha" data-source="post: 1170553" data-attributes="member: 63847"><p>I looked at the MP client code.</p><p>TvWishList Client Setup is accessing to the tv server database using a method</p><p>ConnectToDatabase(), which i copied many years ago. I have no idea how that is related to the issue described here.</p><p>Can someone point me to a client plugin code connecting to the tvserverdatabase?</p><p></p><p>The TvWishList client plugin itself is NOT using this method (it is commented). The connection in the client is done only by</p><p>TvBusinessLayer layer = new TvBusinessLayer();</p><p></p><p></p><p>To be honest i have no idea how to go from there and how that could be related to the issue.</p><p></p><p>[code=csharp]public class ServiceInterface : System.Web.Services.WebService</p><p>{</p><p> public string gentleConfig;</p><p> public string connStr;</p><p> </p><p> public bool ConnectToDatabase()</p><p> {</p><p> Log.Debug("");</p><p> Log.Debug("RemoteControl.IsConnected=" + RemoteControl.IsConnected.ToString());</p><p> </p><p> try</p><p> {</p><p> if (RemoteControl.IsConnected)</p><p> return true;</p><p> </p><p> string provider = "";</p><p> RemoteControl.HostName = Environment.MachineName;</p><p> RemoteControl.Instance.GetDatabaseConnectionString(out connStr, out provider);</p><p> Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(connStr);</p><p> }</p><p> catch (Exception exc)</p><p> {</p><p> Log.Error("TvWishListMP: Connecting to Tvserver database failed");</p><p> Log.Error("Exception is:" + exc.Message);</p><p> return false;</p><p> }</p><p> Log.Debug("Connected to Tv database");</p><p> return true;</p><p> }</p><p> </p><p>}[/code]</p></blockquote><p></p>
[QUOTE="huha, post: 1170553, member: 63847"] I looked at the MP client code. TvWishList Client Setup is accessing to the tv server database using a method ConnectToDatabase(), which i copied many years ago. I have no idea how that is related to the issue described here. Can someone point me to a client plugin code connecting to the tvserverdatabase? The TvWishList client plugin itself is NOT using this method (it is commented). The connection in the client is done only by TvBusinessLayer layer = new TvBusinessLayer(); To be honest i have no idea how to go from there and how that could be related to the issue. [code=csharp]public class ServiceInterface : System.Web.Services.WebService { public string gentleConfig; public string connStr; public bool ConnectToDatabase() { Log.Debug(""); Log.Debug("RemoteControl.IsConnected=" + RemoteControl.IsConnected.ToString()); try { if (RemoteControl.IsConnected) return true; string provider = ""; RemoteControl.HostName = Environment.MachineName; RemoteControl.Instance.GetDatabaseConnectionString(out connStr, out provider); Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(connStr); } catch (Exception exc) { Log.Error("TvWishListMP: Connecting to Tvserver database failed"); Log.Error("Exception is:" + exc.Message); return false; } Log.Debug("Connected to Tv database"); return true; } }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugreports
Archive
Recording not acepted
Contact us
RSS
Top
Bottom