2015-10-02, 02:17 AM
I have a reference to NUtility.dll (c:\program files (x86)\npvr\nutility.dll)
It compiles.
Running it gives this error:
Could not load type 'NUtility.Channel' from assembly 'Nutility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
The development machine is the nextpvr server.
What am I missing here?
Jim
It compiles.
Running it gives this error:
Could not load type 'NUtility.Channel' from assembly 'Nutility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Code:
using NUtility;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
DateTime start = DateTime.Now;
DateTime end = new DateTime(2015,10,30);
NUtility.Channel c;
Dictionary<NUtility.Channel,List<NUtility.EPGEvent>> stuff;
stuff = EPGEvent.GetListingsForTimePeriod(start, end);
foreach(KeyValuePair<NUtility.Channel,List<NUtility.EPGEvent>> pair in stuff)
{
string channel = pair.Key.Name;
foreach (NUtility.EPGEvent ev in pair.Value)
{
string show = ev.Title;
listBox1.Items.Add(string.Format("{0} {1}",channel,show));
}
}
}
}
}
The development machine is the nextpvr server.
What am I missing here?
Jim