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

g444

New Member
April 9, 2015
1
0
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

Development Group
  • Team MediaPortal
  • February 27, 2011
    1,256
    511
    London
    United Kingdom United Kingdom
    Country flag
    The issue is MediaPortal 2. MPExtended only supports MediaPortal 1
     

    hurley

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

    Development Group
  • Team MediaPortal
  • February 27, 2011
    1,256
    511
    London
    United Kingdom United Kingdom
    Country flag
    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
    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
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    ajs [Info] 0.7 Beta - MPExtended, WebMP, Bootstrap skin by ajs - Hard way MPExtended 600
    ajs [Proposal] WebMP source code MPExtended 12
    ajs [Proposal] MPExtended Source code... MPExtended 3
    benicehavefun Using MePo TV Server 1.23 via MPExtended/WebMediaPortal as a Backend for Plex MPExtended 4
    high [Help Me!] MPExtended homepage Team Lounge 4
    uxDesign [Question] Where are the latest sources of mpextended? MPExtended 3
    M MPExtended reports "An unexpected error occurred" WebService and Mobile Access 5
    N Mpextended Configure for Mediaportal 1 Input / Output interfaces 4
    M TV Server Preview Window is blank, sounds works Television (MyTV frontend and TV-Server) 3
    C Hauppauge HVR-1265 -- does it work with MP1? MediaPortal 1 Talk 1
    Rob Hexenmeister ITV Player still not working for me OnlineVideos 2
    V Do you have to have a smart tv for it to work? Newcomers Forum 4
    M [solved] WTV Files does not play on client, MPEG files works well General 1
    D Does Schedules Direct work with mp 1.24? General Support 3
    J [solved] Blu-ray disc playback does not work. Bugreports 13
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    ratata [solved] Can't get two virtual IPTV cards to work side by side... General Support 6
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    T [solved] Green Button start MP not working....but box ticked in config. General Support 1
    mickb [solved] Mediaportal Stops working General Support 5
    C Importer works super slow My TVSeries 5
    D [solved] Movie artwork download stopped working Submit: Bug Reports 9
    A 1.24.0 CD art grabber not working in Shares view 1.24 Pre Release 17
    RoChess Random GPU crash leads to MePo restart, but works fine afterwards MediaPortal 1 14
    Dark Eyes Updated to Windows 10, now TVServer won't work Installation, configuration support 1
    Similar threads

























    Top Bottom