CECRemote failing to load (1 Viewer)

smolesen

Portal Member
January 6, 2012
7
0
Home Country
Denmark Denmark
Hi

Does there exist a version of CECRemote that works with 2.1? The version from the plugin site fails loading with the following in the log:

[2017-02-10 20:12:17,158] [602 ] [Main ] [ERROR] - Error parsing plugin descriptor file 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\CECRemote\plugin.xml'
System.ArgumentException: 'Plugin' element doesn't support an attribute 'PluginVersion'
at MediaPortal.Common.Services.PluginManager.PluginDirectoryDescriptor.Load(String pluginDirectoryPath)
[2017-02-10 20:12:17,163] [607 ] [Main ] [ERROR] - Error loading plugin in directory 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\CECRemote'
System.ArgumentException: Directory 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\CECRemote' doesn't contain a valid plugin descriptor file
at MediaPortal.Common.Services.PluginManager.PluginDirectoryDescriptor..ctor(String pluginDirectoryPath)
at MediaPortal.Common.Services.PluginManager.PluginManager.LoadPluginsData()
 

Timhoh1234

Portal Pro
September 29, 2015
252
90
Home Country
Germany Germany
it could be, that just the compatibility version number of the plugin needs to be increased. MP2.1 expects an increased number.
 

smolesen

Portal Member
January 6, 2012
7
0
Home Country
Denmark Denmark
Ok, I've figured it out...

In C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\CECRemote\plugin.xml, change:

<DependsOn>
<CoreDependency Name="MediaPortal.Common" CompatibleAPI="1" />
<CoreDependency Name="MediaPortal.UI" CompatibleAPI="1" />
<PluginReference PluginId="{1AFF4467-64B0-4ca1-AF28-9AEDF3525BCE}" CompatibleAPI="1" /> <!-- ConfigurationManager -->
</DependsOn>

to

<DependsOn>
<CoreDependency Name="MediaPortal.Common" CompatibleAPI="2" />
<CoreDependency Name="MediaPortal.UI" CompatibleAPI="2" />
<PluginReference PluginId="{1AFF4467-64B0-4ca1-AF28-9AEDF3525BCE}" CompatibleAPI="1" /> <!-- ConfigurationManager -->
</DependsOn>


In C:\Program Files (x86)\Team MediaPortal\MP2-Client\MP2-Client.exe.config, change:

<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
</startup>

to

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
</startup>
 

Users who are viewing this thread

Top Bottom