MP 0.2.2 & 0.2.2SVN differences (1 Viewer)

moiristo

Portal Pro
November 17, 2006
342
27
Enschede
Home Country
Netherlands Netherlands
I think it would be a good idea to start this thread, because I see a lot of problems posted on thid forum that are caused by the same problem: the difference between MP 0.2.2 and 0.2.2SVN. I am not sure what the exact differences are, but here is the 'all time favorite':

- MediaPortal.Profile.Settings
Original class is in the Util lib, in 0.2.2SVN it is in in the Utils lib, causing the error 'System.TypeLoadException: Could not load type 'MediaPortal.Profile.Settings' from assembly 'Core' '. The solution is to recompile the plugin against the target 0.2.2 version. In other words, this requires two different versions of a plugin: 0.2.2 compatible and 0.2.2SVN compatible. So, if you get this error, please give the MP version you are using, so a custom version can be compiled for that version.
 

Globoxrocks

Portal Pro
December 30, 2006
78
0
i have the same problem. it Costed me days to find out. First it went wrong bij some people most of them had no problems including me so it was very difficult to see where it went wrong. Today recompiled against the new version and finally i could reproduce the error. same utils. I saw also many programs were changed ( getting xml ). But it did not solve my problem. By the way i get an error: about the Utils assembly.

2007-02-06 03:07:49.801702 [ERROR][MPMain]: OnMessage exception:confused:ystem.TypeLoadException: Could not load type 'MediaPortal.Configuration.Config' from assembly 'Utils, Version=1.0.2546.32604, Culture=neutral, PublicKeyToken=null'.
at MediaPortal.GUI.WWITV.WWITV.LoadSettingsWwitvXML()
at MediaPortal.GUI.WWITV.WWITV.OnPageLoad()
at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)

But is it a bug or did they change things and do i have to change my plugin. I do not know what you mean by two plugins ?. i am developing the wwitv plugin should i make two versions ? I think it is not very clear to users an in future what is gonna happen.
 

moiristo

Portal Pro
November 17, 2006
342
27
Enschede
Home Country
Netherlands Netherlands
The problem is that some classes (in the first case MediaPortal.Profile.Settings, in your case MediaPortal.Configuration.Config) are moved to different packages. So, when you compile wwitv against the latest SVN and use it with MP 0.2.2 (normal), the dll 'thinks' that the class can be found in the Utils assembly, but instead it is in the Util assembly (I guess it's there in 0.2.2). This causes these errors. Therefore, you need to compile your plugin with references (Core, Utils,...) from 0.2.2 to make the plugin work under 0.2.2.
 

Globoxrocks

Portal Pro
December 30, 2006
78
0
ok thanks i just released a zip with 2 versions. But it is strange. it costed me days to find out. i always used the stable version. in my work i learned a rule never change the default behaviour of a program with one change they messed up a lot of plugins.
 

moiristo

Portal Pro
November 17, 2006
342
27
Enschede
Home Country
Netherlands Netherlands
It would have been nice if they provided some backward compatibility :) But I guess it was necessary to do it..
 

Paranoid Delusion

Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    If you think 0.2.2.0 is beta, then SVN's are compilations of code change that no one fully knows the repercussions for, so be prepared for the good :D BAD :eek:
    and ugly :mad:

    It's amazing what a little code change breaks.

    This is not to dishearten anyone one trying to use a SVN, just make sure you have a working version of MP backed up.

    Would also recommend default settings for everything are used, until you have a working version of MP for YOU.

    Much easier to locate individual problems :D
     

    Users who are viewing this thread

    Top Bottom