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

g444

New Member
April 9, 2015
1
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?:
2015-04-09 18:05:11.49511 [ HostThread( 4)] DEBUG: Opening MPExtended ServiceHost version 0.6.0-beta (commit 7326b77)
2015-04-09 18:05:12.10546 [ HostThread( 4)] DEBUG: Loading service MediaAccessService
2015-04-09 18:05:12.29785 [ HostThread( 4)] DEBUG: Could not find MediaPortalDirs.xml
2015-04-09 18:05:12.29785 [ HostThread( 4)] INFO: MediaPortal configuration file does not exists (this isn't a problem for server-only installations)
2015-04-09 18:05:12.29785 [ HostThread( 4)] INFO: Replacing unknown Mediaportal path substitution %mp-music-playlists% with empty string
2015-04-09 18:05:12.55664 [ ( 7)] DEBUG: Reloading configuration file 'MediaAccess.xml' due to changes.
2015-04-09 18:05:12.55957 [ ( 7)] INFO: Replacing unknown Mediaportal path substitution %mp-music-playlists% with empty string
2015-04-09 18:05:12.55957 [ ( 7)] DEBUG: Reloading all libraries because of changes to MediaAccess.xml
2015-04-09 18:05:12.63476 [ ( 7)] DEBUG: Loading service MetaService
2015-04-09 18:05:12.85351 [ HostThread( 4)] DEBUG: Loading service ScraperService
2015-04-09 18:05:12.85742 [ HostThread( 4)] WARN: PluginLoader: Directory C:\Program Files\MPExtended\Service\Plugins\Scrapers doesn't exist or can't be accessed
2015-04-09 18:05:12.90820 [ HostThread( 4)] DEBUG: Loading service StreamingService
2015-04-09 18:05:12.98339 [ HostThread( 4)] DEBUG: Loading service TVAccessService
2015-04-09 18:05:12.98535 [ HostThread( 4)] INFO: Cannot find Gentle.config file, assuming TVEngine isn't installed...
2015-04-09 18:05:13.16503 [ HostThread( 4)] DEBUG: Loading service UserSessionProxyService
2015-04-09 18:05:13.17480 [ HostThread( 4)] DEBUG: WCF services have been started
2015-04-09 18:05:13.18847 [ HostThread( 4)] ERROR: Cannot find installed TvService.exe or MediaPortal.exe
2015-04-09 18:05:13.18945 [ HostThread( 4)] INFO: No MediaPortal installed

2015-04-09 18:05:13.18945 [ HostThread( 4)] DEBUG: Running on CLR 4.0.30319.18408 on Microsoft Windows NT 6.1.7600.0
2015-04-09 18:05:13.19531 [ ( 9)] DEBUG: Reloading configuration file 'Authentication.xml' due to changes.
2015-04-09 18:05:13.19628 [ ( 9)] DEBUG: Reloading configuration file 'Streaming.xml' due to changes.
2015-04-09 18:05:16.49609 [ ( 9)] DEBUG: Reloading configuration file 'Authentication.xml' due to changes.
2015-04-09 18:05:16.49609 [ ( 9)] DEBUG: Reloading configuration file 'MediaAccess.xml' due to changes.
2015-04-09 18:05:16.49707 [ ( 9)] DEBUG: Reloading all libraries because of changes to MediaAccess.xml
2015-04-09 18:05:16.51953 [ ( 9)] DEBUG: Reloading configuration file 'Services.xml' due to changes.
2015-04-09 18:05:16.51953 [ ( 9)] DEBUG: Reloading configuration file 'Streaming.xml' due to changes.
2015-04-09 18:05:17.74023 [ ( 4)] DEBUG: Triggering ServiceState.Started event
How can i get webinterface/mpextended to work correctly?
 

MrTechno

Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    The issue is MediaPortal 2. MPExtended only supports MediaPortal 1
     

    hurley

    Portal Pro
    February 2, 2015
    61
    57
    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.
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    If you can find a workaround to get it working on XP I'm sure oxan and DieBagger would be grateful for the patch.
     

    hurley

    Portal Pro
    February 2, 2015
    61
    57
    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.
     

    hurley

    Portal Pro
    February 2, 2015
    61
    57
    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.
     

    Users who are viewing this thread

    Top Bottom