[solved] TVServer Plugin must be missing something. (1 Viewer)

Dave Reynolds

MP Donator
  • Premium Supporter
  • February 23, 2012
    59
    18
    42
    Home Country
    United Kingdom United Kingdom
    Country flag
    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

    Main Plugin code:

    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(); }
            }
    
          
        }


    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()
            {
            }
        }
    }

    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")]

    Really not sure where to go from here, so any advice would be appreicated!,

    Thank you.

    Dave
     

    Attachments

    • img.png
      img.png
      24.4 KB · Views: 0

    Users who are viewing this thread

    Similar threads

    Hey. When I want to get info from tv server I use TVBusinessLayer methods. Also sometimes I need to set cofing with some metthod I don't remember
    Hey. When I want to get info from tv server I use TVBusinessLayer methods. Also sometimes I need to set cofing with some metthod I...
    Hi, I'm moving from delphiprogramming to develp a application in visual studio c#, and i got this just a button and a textbox...
    Replies
    1
    Views
    931
    I have not worked yesterday calendar. Just an empty box.
    I have not worked yesterday calendar. Just an empty box.
    Hi, I also had problems like tony3ridge. After I've read through the thread I've tried deleting all traktplugin.dll files other...
    Replies
    46
    Views
    11K
    Hi, in the last days i tried to create a TvServer remote service to send commands from Client to TvServer using the GlobalServiceProvider. That works all well. Here is the code: libary classes (used with Client and Server plugin) Imports TVMLib.MediaPortal.TvDatabase Namespace RemoteControl Public Interface ITVMControl...
    Hi, in the last days i tried to create a TvServer remote service to send commands from Client to TvServer using the...
    Hi, in the last days i tried to create a TvServer remote service to send commands from Client to TvServer using the...
    Replies
    0
    Views
    938
    Hi, That might be the cause! I also updated to 1.5.0 and installed MPRemote. Now I've deactivated MPRemote, let's see what happens. Thanks for the info!
    Hi, That might be the cause! I also updated to 1.5.0 and installed MPRemote. Now I've deactivated MPRemote, let's see what...
    I upgraded to media portal 1.5 then install mp tv series from the extension installer. i can watch shows that i have cataloged in...
    Replies
    3
    Views
    821
    • Sticky
    I've noticed some mistakes still, but family and F1 race in Azerbaijan is more important to me this weekend, so I'll get to IMDb+ eventually :whistle:
    I've noticed some mistakes still, but family and F1 race in Azerbaijan is more important to me this weekend, so I'll get to IMDb+...
    The IMDb+ scraper-script and plugin combination for Moving-Pictures is the first scraper to support custom options, allowing you to...
    Replies
    162
    Views
    21K
    Top Bottom