- February 23, 2012
- 59
- 18
- 45
- Home Country
- United Kingdom
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:
Setup:
Assembly:
Really not sure where to go from here, so any advice would be appreicated!,
Thank you.
Dave
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