Hello World Process Plugin - InvalidCastException (1 Viewer)

wima

Portal Member
June 25, 2007
33
0
49
Hello

I want to make a simple process plugin. I made a dll with this code:
Code:
namespace MyPlugin {
    public class MyPlugin :  IPlugin {
public void Start() {
        }

        public void Stop() {
        }
}
I copied the dll to the process folder. When I start MediaPortal, i have man errors like:
2008-09-22 15:56:14.002365 [ERROR][MPMain]: Exception while loading IPlugin instances: MyPlugin.MyPlugin
2008-09-22 15:56:14.003341 [ERROR][MPMain]: System.InvalidCastException: Unable to cast object of type 'MyPlugin.MyPlugin' to type 'MediaPortal.GUI.Library.IPlugin'.

All other plugins also failed.
What is wrong?

Thank you
wima
 

wima

Portal Member
June 25, 2007
33
0
49
The problem is, that I have set the output path directly to the plugins\process directory. Then some dll's were copied. When I copy only my plugin dll to this directory after build, it works.
 

Users who are viewing this thread

Top Bottom