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
Development
General Development (no feature request here!)
TVServer Plugin must be missing something.
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="Dave Reynolds" data-source="post: 1269204" data-attributes="member: 119609"><p>Hi All,</p><p></p><p>Developing a TVServer Plugin, but get the following when attempting to run:</p><p></p><p>PluginManager: TvEngine.TVHController is incompatible with the current tvserver version and won't be loaded!</p><p></p><p>It compiles find and is using .Net 4.0</p><p></p><p><u>Main Plugin code:</u></p><p></p><p>[CODE]using System;</p><p>using System.Net;</p><p>using System.Collections.Generic;</p><p>using System.Text;</p><p>using System.Threading;</p><p>using System.IO;</p><p>using SetupTv;</p><p>using TvControl;</p><p>using TvDatabase;</p><p>using TvLibrary.Log;</p><p>using TvLibrary.Interfaces;</p><p>using TvEngine.PowerScheduler.Interfaces;</p><p>using TvEngine.Interfaces;</p><p>using System.Runtime.CompilerServices;</p><p>using Gentle.Common;</p><p>using Gentle.Framework;</p><p></p><p></p><p>namespace TvEngine</p><p>{</p><p> public class TVHController : ITvServerPlugin</p><p> { </p><p> public string Name</p><p> {</p><p> get { return "TVHPlugin"; }</p><p> }</p><p></p><p> public string Version</p><p> {</p><p> get { return "1.0.0.0"; }</p><p> }</p><p></p><p> public string Author</p><p> {</p><p> get { return "DTR"; }</p><p> }</p><p></p><p> public bool MasterOnly</p><p> {</p><p> get { return true; }</p><p> }</p><p></p><p></p><p></p><p> public void Start(IController controller)</p><p> {</p><p> Log.WriteFile("plugin: TVHeadend Plugin started"); </p><p> }</p><p></p><p> public void Stop()</p><p> {</p><p> Log.WriteFile("plugin: TVHeadend Plugin stopped");</p><p> </p><p> }</p><p></p><p> </p><p> public SetupTv.SectionSettings Setup</p><p> {</p><p> get { return new SetupTv.Sections.Setup(); }</p><p> }</p><p></p><p> </p><p> }[/CODE]</p><p></p><p></p><p>Setup:</p><p></p><p></p><p>[CODE]using System;</p><p>using System.Collections;</p><p>using System.Collections.Generic;</p><p>using System.ComponentModel;</p><p>using System.Drawing;</p><p>using System.Globalization;</p><p>using System.IO;</p><p>using System.Text;</p><p>using System.Windows.Forms;</p><p>using System.Xml;</p><p>using System.Linq;</p><p>using TvDatabase;</p><p>using TvEngine;</p><p>using TvLibrary.Log;</p><p>using TvLibrary.Channels;</p><p>using TvLibrary.Interfaces;</p><p>using TvControl;</p><p>using Newtonsoft.Json;</p><p>using System.Net;</p><p>using Gentle.Framework;</p><p></p><p>namespace SetupTv.Sections</p><p>{</p><p> public partial class Setup : SetupTv.SectionSettings</p><p> {</p><p> public Setup()</p><p> : this("TVHeadend Plugin") { }</p><p></p><p> public Setup(string name) : base(name)</p><p> {</p><p> InitializeComponent();</p><p> }</p><p></p><p> public override void OnSectionActivated()</p><p> {</p><p> }</p><p></p><p> public override void OnSectionDeActivated()</p><p> {</p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p>Assembly:</p><p></p><p>[CODE]using MediaPortal.Common.Utils;</p><p>using System.Reflection;</p><p>using System.Runtime.CompilerServices;</p><p>using System.Runtime.InteropServices;</p><p></p><p></p><p>// General Information about an assembly is controlled through the following</p><p>// set of attributes. Change these attribute values to modify the information</p><p>// associated with an assembly.</p><p>[assembly: AssemblyTitle("TVHControl")]</p><p>[assembly: AssemblyDescription("")]</p><p>[assembly: AssemblyConfiguration("")]</p><p>[assembly: AssemblyCompany("")]</p><p>[assembly: AssemblyProduct("TVHControl")]</p><p>[assembly: AssemblyCopyright("Copyright © 2020")]</p><p>[assembly: AssemblyTrademark("")]</p><p>[assembly: AssemblyCulture("")]</p><p></p><p>// Setting ComVisible to false makes the types in this assembly not visible</p><p>// to COM components. If you need to access a type in this assembly from</p><p>// COM, set the ComVisible attribute to true on that type.</p><p>[assembly: ComVisible(false)]</p><p></p><p>// The following GUID is for the ID of the typelib if this project is exposed to COM</p><p>[assembly: Guid("54416078-ff86-4073-a903-ace8359d129f")]</p><p></p><p>// Version information for an assembly consists of the following four values:</p><p>//</p><p>// Major Version</p><p>// Minor Version</p><p>// Build Number</p><p>// Revision</p><p>//</p><p>// You can specify all the values or you can default the Build and Revision Numbers</p><p>// by using the '*' as shown below:</p><p>// [assembly: AssemblyVersion("1.0.*")]</p><p>[assembly: AssemblyVersion("1.24.0.0")]</p><p>[assembly: AssemblyFileVersion("1.24.0.0")]</p><p>[assembly: CompatibleVersion("Own")]</p><p>[assembly: UsesSubsystem("TVE")][/CODE]</p><p></p><p>Really not sure where to go from here, so any advice would be appreicated!,</p><p></p><p>Thank you.</p><p></p><p>Dave</p></blockquote><p></p>
[QUOTE="Dave Reynolds, post: 1269204, member: 119609"] Hi All, Developing a TVServer Plugin, but get the following when attempting to run: PluginManager: TvEngine.TVHController is incompatible with the current tvserver version and won't be loaded! It compiles find and is using .Net 4.0 [U]Main Plugin code:[/U] [CODE]using System; using System.Net; using System.Collections.Generic; using System.Text; using System.Threading; using System.IO; using SetupTv; using TvControl; using TvDatabase; using TvLibrary.Log; using TvLibrary.Interfaces; using TvEngine.PowerScheduler.Interfaces; using TvEngine.Interfaces; using System.Runtime.CompilerServices; using Gentle.Common; using Gentle.Framework; namespace TvEngine { public class TVHController : ITvServerPlugin { public string Name { get { return "TVHPlugin"; } } public string Version { get { return "1.0.0.0"; } } public string Author { get { return "DTR"; } } public bool MasterOnly { get { return true; } } public void Start(IController controller) { Log.WriteFile("plugin: TVHeadend Plugin started"); } public void Stop() { Log.WriteFile("plugin: TVHeadend Plugin stopped"); } public SetupTv.SectionSettings Setup { get { return new SetupTv.Sections.Setup(); } } }[/CODE] Setup: [CODE]using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Globalization; using System.IO; using System.Text; using System.Windows.Forms; using System.Xml; using System.Linq; using TvDatabase; using TvEngine; using TvLibrary.Log; using TvLibrary.Channels; using TvLibrary.Interfaces; using TvControl; using Newtonsoft.Json; using System.Net; using Gentle.Framework; namespace SetupTv.Sections { public partial class Setup : SetupTv.SectionSettings { public Setup() : this("TVHeadend Plugin") { } public Setup(string name) : base(name) { InitializeComponent(); } public override void OnSectionActivated() { } public override void OnSectionDeActivated() { } } }[/CODE] Assembly: [CODE]using MediaPortal.Common.Utils; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("TVHControl")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TVHControl")] [assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("54416078-ff86-4073-a903-ace8359d129f")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.24.0.0")] [assembly: AssemblyFileVersion("1.24.0.0")] [assembly: CompatibleVersion("Own")] [assembly: UsesSubsystem("TVE")][/CODE] Really not sure where to go from here, so any advice would be appreicated!, Thank you. Dave [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
TVServer Plugin must be missing something.
Contact us
RSS
Top
Bottom