TVPlug shows older version (1 Viewer)

Kashif Jamil

Portal Member
December 25, 2010
11
0
Home Country
Canada Canada
Hi there,

I download the latest code for Media Portal server, client, TVLibarary etc (e.g. 1.1.6.27128 I guess) from repository. I successfully rebuild the the applications. After building setup files. I was able to successfylly installed the Server and Media Portal client using setup binaries.
I tested server and client successfully. I noticed the TV Plugin was not coming in main menu. So as per the documentation for installing plugin, I copied the compiled release DLLs from TVPlugin into installed path Media Portal plugin directory. After that If I try to run Media Portal or configuration binary, I am getting following error:

"TVPlugin and MediaPortal don't have same version. Please update the older component to the same version as the newer one."

MediaPortal Version: 1.1.6.27128
TvPlugin Version: 1.1.6.0

I updated the resository for TvEngine3 (Which contain the TvPlugin inside TvLibarary) but didn't help.

Can any one let me know how to update source for older TvPlugin version or resolve the above issue?

Thanks in advance,

Kashif Jamil
 

rekenaar

Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    Hi

    Thi does not seem related to MP2 but rather MP1.
    I will try and find the correct forum and move the thread. I you are not satisfied with the destination I choose, just PM me.
     

    DJBlu

    Portal Pro
    August 14, 2007
    1,670
    813
    Llanelli
    Home Country
    United Kingdom United Kingdom
    Hi there,

    I download the latest code for Media Portal server, client, TVLibarary etc (e.g. 1.1.6.27128 I guess) from repository. I successfully rebuild the the applications. After building setup files. I was able to successfylly installed the Server and Media Portal client using setup binaries.
    I tested server and client successfully. I noticed the TV Plugin was not coming in main menu. So as per the documentation for installing plugin, I copied the compiled release DLLs from TVPlugin into installed path Media Portal plugin directory. After that If I try to run Media Portal or configuration binary, I am getting following error:

    "TVPlugin and MediaPortal don't have same version. Please update the older component to the same version as the newer one."

    MediaPortal Version: 1.1.6.27128
    TvPlugin Version: 1.1.6.0

    I updated the resository for TvEngine3 (Which contain the TvPlugin inside TvLibarary) but didn't help.

    Can any one let me know how to update source for older TvPlugin version or resolve the above issue?

    Thanks in advance,

    Kashif Jamil

    Rebuild Media Portal and install it.

    There is a version conflict so it isn't loading.
     

    Kashif Jamil

    Portal Member
    December 25, 2010
    11
    0
    Home Country
    Canada Canada
    I did it at first place. I rebuild the Server, Client and TVPlug using the scripts. Any other idea?

    Thanks,

    Kashif Jamil
     

    DJBlu

    Portal Pro
    August 14, 2007
    1,670
    813
    Llanelli
    Home Country
    United Kingdom United Kingdom
    I did it at first place. I rebuild the Server, Client and TVPlug using the scripts. Any other idea?

    Thanks,

    Kashif Jamil

    Yes Rebuild Media Portal too

    You need to build Media Portal, Server and TVClient Plugin.

    MSBUILD_Rebuild_Release_MediaPortal.bat

    aswell as

    MSBUILD_Rebuild_Release_TVServer_Client.bat

    Then run both Setup files that are created.

    You can't just run one build file as it will result in the Version Conflict.

    If you make any changes after you install these 2 files then run the "MSBUILD_Rebuild_Release_TVServer_Client.bat" file and install it over the top. This will keep the version numbers correct.
     

    Kashif Jamil

    Portal Member
    December 25, 2010
    11
    0
    Home Country
    Canada Canada
    Hi, older version is not for Media Portal, older version is for TVPlugin DLL files. As I mentioned earlier, I compiled these dll again and tried, but didn't help.
     

    DJBlu

    Portal Pro
    August 14, 2007
    1,670
    813
    Llanelli
    Home Country
    United Kingdom United Kingdom
    Hi, older version is not for Media Portal, older version is for TVPlugin DLL files. As I mentioned earlier, I compiled these dll again and tried, but didn't help.

    I don't know what it is you're trying to do. You have to compile both Media Portal and TV server together. If you are compiling an older version of TV Server then you need the corrosponding Media Portal to compile with it. It will not work any other way.
     

    Kashif Jamil

    Portal Member
    December 25, 2010
    11
    0
    Home Country
    Canada Canada
    What I am trying to say is that there is no conflict in Media Server and Media Client version. Problem is TVPlugin DLLs has older version. I compiled TVPlugin's DLL and copied into Media Portal's plugin directory.

    Question is not to recompile Media Portal or Server. How to compile TVPlugin with latest version?
     

    DJBlu

    Portal Pro
    August 14, 2007
    1,670
    813
    Llanelli
    Home Country
    United Kingdom United Kingdom
    What I am trying to say is that there is no conflict in Media Server and Media Client version. Problem is TVPlugin DLLs has older version. I compiled TVPlugin's DLL and copied into Media Portal's plugin directory.

    Question is not to recompile Media Portal or Server. How to compile TVPlugin with latest version?

    M8,

    Instead of trying to say what is wrong, why not try what I have said and you will find I am right and it will work.

    Run both the Batch files and install them

    This will compile the TV plugin to the correct version and will work.

    If you aren't willing to do this then I'm affraid no one is going to be able to assist you as what you are trying cannot be done.
     

    Kashif Jamil

    Portal Member
    December 25, 2010
    11
    0
    Home Country
    Canada Canada
    Thank you very much for your kind reply. Let me explain you what I did as per your advise (Which didn't help)

    Step A) Execute two batch files in sequence (1) MSBUILD_Rebuild_Release_MediaPortal and (2) MSBUILD_Rebuild_Release_TVServer_Client from my local location C:\svnroot\mediaportal\trunk\Build

    Step B) Scripts created two binaries (1) Setup-MediaPortal-svn-1.1.6.27128.exe (2) Setup-TvEngine-svn-1.1.6.27128.exe in C:\svnroot\mediaportal\trunk\Release

    Step C) Run Media Portal Client there was no TV option in main menu (I guess based on my little knowledge there is no TvPlugin installed

    Step D) Check following local directory for plug in files
    C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows
    Only two DLLs found (1) WindowPlugins.dll (2) Dialogs.dll (Ofcourse there is no TVPlugin dll found)

    Step E) Next stop I checked to see TVPlug Solution is compiled when I created setup binaries. I reliazed that TVPlugin is not part of setup. So I compiled the TVProject in VS and copied the DLLs in above mentioned plugin directory. Except the above two DLLs.

    Step F) After that if I run client, I am getting error message which I mentioned.

    I decided rather I should ask question I should look into code to see where is the code which checking version?

    I found there is way to avoid version check by pasing parameter (More over there is bool variable which can also set to false within code)

    See code from MediaPortal.cs

    #if !DEBUG
    _avoidVersionChecking = false;
    if (arg.ToLowerInvariant() == "/avoidversioncheck")
    {
    _avoidVersionChecking = true;
    Log.Warn("Version check is disabled by command line switch \"/avoidVersionCheck\"");
    }
    #endif

    Here is the code which validate version

    string tvPlugin = Config.GetFolder(Config.Dir.Plugins) + "\\Windows\\TvPlugin.dll";
    if (File.Exists(tvPlugin) && !_avoidVersionChecking)
    {
    string tvPluginVersion = FileVersionInfo.GetVersionInfo(tvPlugin).ProductVersion;
    string MpVersion = FileVersionInfo.GetVersionInfo(MpExe).ProductVersion;
    if (MpVersion != tvPluginVersion)
    {
    string strLine = "TvPlugin and MediaPortal don't have the same version.\r\n";
    strLine += "Please update the older component to the same version as the newer one.\r\n";
    strLine += "MediaPortal Version: " + MpVersion + "\r\n";
    strLine += "TvPlugin Version: " + tvPluginVersion;
    if (splashScreen != null)
    {
    splashScreen.Stop();
    splashScreen = null;
    }
    MessageBox.Show(strLine, "MediaPortal", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Log.Info(strLine);
    return;
    }
    }

    Hope this will help to every one who interested about how to stop version checking among different component.

    Thanks.
     

    Users who are viewing this thread

    Top Bottom