home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
WebMP / MPExtended not working (webinterface shows only home+settings)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="hurley" data-source="post: 1134502" data-attributes="member: 151395"><p>Ok so just out of curiosity I patched that method and compiled just <em>MPExtended.Libraries.Service.dll</em> I think that's the only library affected by the VersionUtil.cs class and I'm missing some dependencies (Wix and the <em>WebMediaPortal</em> project wouldn't load) so didn't try to build the whole solution.</p><p></p><p>I might be missing something here from not building the whole lot and needing some sleep but in any case the error message <em>Cannot find installed TvService.exe or MediaPortal.exe</em> is gone however I'm still only seeing <em>Home | Music | Settings</em> in the webApp and the Test link for TVServer returns: {"ApiVersion":4,"HasConnectionToTVServer":false,"ServiceVersion":"0.5.4"}</p><p></p><p>Service log now says: <em>Found supported MediaPortal installation (MP1_3, build 1.2.100.0)</em></p><p></p><p>Might keep trying a bit later but I'm pretty sure there's a lot more to it than that.</p><p>This is the changes I made to <em>VersionUtil.GetMediaPortalAssemblyPath()</em></p><p></p><p><span style="font-size: 12px"><strong>Original:</strong></span></p><p><span style="font-size: 10px"> private static string GetMediaPortalAssemblyPath()</span></p><p><span style="font-size: 10px"> {</span></p><p style="margin-left: 20px"><span style="font-size: 10px">string tv = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Team MediaPortal", "MediaPortal TV Server", "TvService.exe");</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> if (File.Exists(tv))</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> {</span></p><p style="margin-left: 20px"><span style="font-size: 10px"> return tv;</span></p></p> <p style="margin-left: 20px"><span style="font-size: 10px"> }</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"></span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> string mp = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Team MediaPortal", "MediaPortal", "MediaPortal.exe");</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> if (File.Exists(mp))</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> {</span></p><p style="margin-left: 20px"><span style="font-size: 10px"> return mp;</span></p></p> <p style="margin-left: 20px"><span style="font-size: 10px"> }</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"></span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> Log.Error("Cannot find installed TvService.exe or MediaPortal.exe");</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> return null;</span></p><p><span style="font-size: 10px"> }</span></p><p></p><p><span style="font-size: 12px"><strong>Changed:</strong></span></p><p><span style="font-size: 10px"> private static string GetMediaPortalAssemblyPath()</span></p><p><span style="font-size: 10px"> {</span></p><p style="margin-left: 20px"><span style="font-size: 10px"> string programsDirectory = Environment.OSVersion.Version.Major < 6</span></p><p style="margin-left: 20px"><span style="font-size: 10px"> ? Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> : Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);</span></p> </p><p></p><p style="margin-left: 20px"><span style="font-size: 10px"> string tv = Path.Combine(programsDirectory, "Team MediaPortal", "MediaPortal TV Server", "TvService.exe");</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> if (File.Exists(tv))</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> {</span></p><p style="margin-left: 20px"><span style="font-size: 10px"> return tv;</span></p></p> <p style="margin-left: 20px"><span style="font-size: 10px"> }</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"></span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> string mp = Path.Combine(programsDirectory, "Team MediaPortal", "MediaPortal", "MediaPortal.exe");</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> if (File.Exists(mp))</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> {</span></p><p style="margin-left: 20px"><span style="font-size: 10px"> return mp;</span></p></p> <p style="margin-left: 20px"><span style="font-size: 10px"> }</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"></span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> Log.Error("Cannot find installed TvService.exe or MediaPortal.exe");</span></p> <p style="margin-left: 20px"><span style="font-size: 10px"> return null;</span></p><p><span style="font-size: 10px"> }</span></p><p></p><p><span style="font-size: 12px">Sorry haven't worked out how to put text in code blocks yet<span style="font-size: 10px">.</span></span></p></blockquote><p></p>
[QUOTE="hurley, post: 1134502, member: 151395"] Ok so just out of curiosity I patched that method and compiled just [I]MPExtended.Libraries.Service.dll[/I] I think that's the only library affected by the VersionUtil.cs class and I'm missing some dependencies (Wix and the [I]WebMediaPortal[/I] 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 [I]Cannot find installed TvService.exe or MediaPortal.exe[/I] is gone however I'm still only seeing [I]Home | Music | Settings[/I] in the webApp and the Test link for TVServer returns: {"ApiVersion":4,"HasConnectionToTVServer":false,"ServiceVersion":"0.5.4"} Service log now says: [I]Found supported MediaPortal installation (MP1_3, build 1.2.100.0)[/I] 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 [I]VersionUtil.GetMediaPortalAssemblyPath()[/I] [SIZE=3][B]Original:[/B][/SIZE] [SIZE=2] private static string GetMediaPortalAssemblyPath() {[/SIZE] [INDENT][SIZE=2]string tv = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Team MediaPortal", "MediaPortal TV Server", "TvService.exe"); if (File.Exists(tv)) {[/SIZE] [INDENT][SIZE=2] return tv;[/SIZE][/INDENT] [SIZE=2] } string mp = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Team MediaPortal", "MediaPortal", "MediaPortal.exe"); if (File.Exists(mp)) {[/SIZE] [INDENT][SIZE=2] return mp;[/SIZE][/INDENT] [SIZE=2] } Log.Error("Cannot find installed TvService.exe or MediaPortal.exe"); return null;[/SIZE][/INDENT] [SIZE=2] }[/SIZE] [SIZE=3][B]Changed:[/B][/SIZE] [SIZE=2] private static string GetMediaPortalAssemblyPath() {[/SIZE] [INDENT][SIZE=2] string programsDirectory = Environment.OSVersion.Version.Major < 6[/SIZE] [INDENT][SIZE=2] ? Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) : Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);[/SIZE][/INDENT][/INDENT] [SIZE=2][/SIZE] [INDENT][SIZE=2] string tv = Path.Combine(programsDirectory, "Team MediaPortal", "MediaPortal TV Server", "TvService.exe"); if (File.Exists(tv)) {[/SIZE] [INDENT][SIZE=2] return tv;[/SIZE][/INDENT] [SIZE=2] } string mp = Path.Combine(programsDirectory, "Team MediaPortal", "MediaPortal", "MediaPortal.exe"); if (File.Exists(mp)) {[/SIZE] [INDENT][SIZE=2] return mp;[/SIZE][/INDENT] [SIZE=2] } Log.Error("Cannot find installed TvService.exe or MediaPortal.exe"); return null;[/SIZE][/INDENT] [SIZE=2] }[/SIZE] [SIZE=3]Sorry haven't worked out how to put text in code blocks yet[SIZE=2].[/SIZE][/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
WebMP / MPExtended not working (webinterface shows only home+settings)
Contact us
RSS
Top
Bottom