WebMP / MPExtended not working (webinterface shows only home+settings)

Discussion in 'MPExtended' started by g444, April 9, 2015.

  1. g444

    g444 New Member

    Joined:
    April 9, 2015
    Messages:
    1
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Germany Germany
    Hi,

    i'd like to use the webmediportal interface: i installed "MediaPortal-2--origin--Weekly--2015-04-02--16-59.zip" with nativetv 3 and mpextended 6.0 and webmp 0.6 ( i also tried previous mpextended/webmp versions, same issue).



    Installation works fine and the services are running and i can watch livetv from a client. The problem is that the webinterface is almost empty: i only see the Home and Settings button, but no tv music/movies/tv guide/recordings etc.

    In mpextended service log there's an error about mediaportal not being installed because it can't find the mp/tv exes, maybe that's the issue?:
    How can i get webinterface/mpextended to work correctly?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    The issue is MediaPortal 2. MPExtended only supports MediaPortal 1
     
  4. hurley

    hurley Portal Pro

    Joined:
    February 2, 2015
    Messages:
    61
    Likes Received:
    26
    Ratings:
    +44 / 0
    Home Country:
    Australia Australia
    I'm getting the same error here too. MPExtended 0.5.4 | Windows XP | MePo 1.3 Alpha.
    I suspect MPExtended is not compatible with WinXP? I haven't found any mention trawling the forums or www.************** so I dug deep and found the error string in the source code (VersionUtil.cs).

    In the method GetMediaPortalAssemblyPath():
    Environment.SpecialFolder.ProgramFilesX86 returns an empty string on WinXP systems.

    So I presume v0.5.4 is not intended to be compatible. Are there any earlier versions which are?
    Thanks in advance, this would be a really handy app to get running.
     
  5. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    If you can find a workaround to get it working on XP I'm sure oxan and DieBagger would be grateful for the patch.
     
  6. hurley

    hurley Portal Pro

    Joined:
    February 2, 2015
    Messages:
    61
    Likes Received:
    26
    Ratings:
    +44 / 0
    Home Country:
    Australia Australia
    hmm, I guess there must be more fundamental reasons if it's not compatible.
    That method GetMediaPortalAssemblyPath() is unchanged at least since v0.4.0 and there appears to be several key classes that depend on it so if there was an XP compatible version it must have been pre 0.4.0.

    Does anyone know if / what version did work with XP?
    I know I really need to crawl out of my cave and update my OS and MePo.
     
  7. hurley

    hurley Portal Pro

    Joined:
    February 2, 2015
    Messages:
    61
    Likes Received:
    26
    Ratings:
    +44 / 0
    Home Country:
    Australia Australia
    Ok so just out of curiosity I patched that method and compiled just MPExtended.Libraries.Service.dll I think that's the only library affected by the VersionUtil.cs class and I'm missing some dependencies (Wix and the WebMediaPortal project wouldn't load) so didn't try to build the whole solution.

    I might be missing something here from not building the whole lot and needing some sleep but in any case the error message Cannot find installed TvService.exe or MediaPortal.exe is gone however I'm still only seeing Home | Music | Settings in the webApp and the Test link for TVServer returns: {"ApiVersion":4,"HasConnectionToTVServer":false,"ServiceVersion":"0.5.4"}

    Service log now says: Found supported MediaPortal installation (MP1_3, build 1.2.100.0)

    Might keep trying a bit later but I'm pretty sure there's a lot more to it than that.
    This is the changes I made to VersionUtil.GetMediaPortalAssemblyPath()

    Original:
    private static string GetMediaPortalAssemblyPath()
    {

    string tv = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Team MediaPortal", "MediaPortal TV Server", "TvService.exe");
    if (File.Exists(tv))
    {

    return tv;
    }

    string mp = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Team MediaPortal", "MediaPortal", "MediaPortal.exe");
    if (File.Exists(mp))
    {

    return mp;
    }

    Log.Error("Cannot find installed TvService.exe or MediaPortal.exe");
    return null;
    }

    Changed:
    private static string GetMediaPortalAssemblyPath()
    {

    string programsDirectory = Environment.OSVersion.Version.Major < 6
    ? Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
    : Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);

    string tv = Path.Combine(programsDirectory, "Team MediaPortal", "MediaPortal TV Server", "TvService.exe");
    if (File.Exists(tv))
    {

    return tv;
    }

    string mp = Path.Combine(programsDirectory, "Team MediaPortal", "MediaPortal", "MediaPortal.exe");
    if (File.Exists(mp))
    {

    return mp;
    }

    Log.Error("Cannot find installed TvService.exe or MediaPortal.exe");
    return null;
    }

    Sorry haven't worked out how to put text in code blocks yet.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!