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 2
Skins and Design
Skinning contest: One month to go
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="Baboonanza" data-source="post: 681477" data-attributes="member: 101901"><p>Removing the context ID bit simply prevents the xaml being linked to the model, so neturally you won't get the error message that it can't find it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>The root cause of the problem is this exception:</p><p>[CODE]2010-11-20 15:30:22.911131 [Error][InputManager dispatch thread]: PluginManager: Error building plugin item '5726DA5A-70D5-458f-AF67-611293D97912' at location '/Models'</p><p>Exception: System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.InvalidOperationException: Beim aufrufenden Thread muss es sich um einen STA-Thread handeln, da dies für viele Komponenten der Benutzeroberfläche erforderlich ist.</p><p> bei System.Windows.Input.InputManager..ctor()</p><p> bei System.Windows.Input.InputManager.GetCurrentInputManagerImpl()</p><p> bei System.Windows.Input.InputManager.get_Current()</p><p> bei System.Windows.Input.KeyboardNavigation..ctor()</p><p> bei System.Windows.FrameworkElement.FrameworkServices..ctor()</p><p> bei System.Windows.FrameworkElement.EnsureFrameworkServices()</p><p> bei System.Windows.FrameworkElement..ctor()</p><p> bei System.Windows.Shapes.Ellipse..ctor()</p><p> bei Models.HelloWorld.Model.CreateParticle()</p><p> bei Models.HelloWorld.Model.Window_Loaded()</p><p> bei Models.HelloWorld.Model..ctor()</p><p> --- Ende der internen Ausnahmestapelüberwachung ---</p><p> bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)</p><p> bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)</p><p> bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)</p><p> bei System.Activator.CreateInstance(Type type, Boolean nonPublic)</p><p> bei System.Activator.CreateInstance(Type type)</p><p> bei MediaPortal.Core.PluginManager.PluginRuntime.InstantiatePluginObject(String typeName) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\PluginManager\PluginRuntime.cs:Zeile 238.</p><p> bei MediaPortal.Core.Services.PluginManager.Builders.InstanceBuilder.BuildItem(PluginItemMetadata itemData, PluginRuntime plugin) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\Builders\InstanceBuilder.cs:Zeile 45.</p><p> bei MediaPortal.Core.Services.PluginManager.PluginManager.RequestItem(PluginItemRegistration itemRegistration, Type type, IPluginItemStateTracker stateTracker) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\PluginManager.cs:Zeile 409.</p><p> Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht.</p><p> Site : System.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandle ByRef, Boolean ByRef)</p><p> Source : mscorlib</p><p>Inner Exception(s):</p><p>Beim aufrufenden Thread muss es sich um einen STA-Thread handeln, da dies für viele Komponenten der Benutzeroberfläche erforderlich ist.</p><p>Stack Trace:</p><p> bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)</p><p> bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)</p><p> bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)</p><p> bei System.Activator.CreateInstance(Type type, Boolean nonPublic)</p><p> bei System.Activator.CreateInstance(Type type)</p><p> bei MediaPortal.Core.PluginManager.PluginRuntime.InstantiatePluginObject(String typeName) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\PluginManager\PluginRuntime.cs:Zeile 238.</p><p> bei MediaPortal.Core.Services.PluginManager.Builders.InstanceBuilder.BuildItem(PluginItemMetadata itemData, PluginRuntime plugin) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\Builders\InstanceBuilder.cs:Zeile 45.</p><p> bei MediaPortal.Core.Services.PluginManager.PluginManager.RequestItem(PluginItemRegistration itemRegistration, Type type, IPluginItemStateTracker stateTracker) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\PluginManager.cs:Zeile 409.[/CODE]</p><p>Since the exception is in German I can't understand it but basically the model has't been loaded, so when SkinEngine can't find it. I have seen the same problem when a model has a dependency (a 'using') on an assembly that can't be resolved at run-time, but I don't think that's the problem here.</p></blockquote><p></p>
[QUOTE="Baboonanza, post: 681477, member: 101901"] Removing the context ID bit simply prevents the xaml being linked to the model, so neturally you won't get the error message that it can't find it :) The root cause of the problem is this exception: [CODE]2010-11-20 15:30:22.911131 [Error][InputManager dispatch thread]: PluginManager: Error building plugin item '5726DA5A-70D5-458f-AF67-611293D97912' at location '/Models' Exception: System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.InvalidOperationException: Beim aufrufenden Thread muss es sich um einen STA-Thread handeln, da dies für viele Komponenten der Benutzeroberfläche erforderlich ist. bei System.Windows.Input.InputManager..ctor() bei System.Windows.Input.InputManager.GetCurrentInputManagerImpl() bei System.Windows.Input.InputManager.get_Current() bei System.Windows.Input.KeyboardNavigation..ctor() bei System.Windows.FrameworkElement.FrameworkServices..ctor() bei System.Windows.FrameworkElement.EnsureFrameworkServices() bei System.Windows.FrameworkElement..ctor() bei System.Windows.Shapes.Ellipse..ctor() bei Models.HelloWorld.Model.CreateParticle() bei Models.HelloWorld.Model.Window_Loaded() bei Models.HelloWorld.Model..ctor() --- Ende der internen Ausnahmestapelüberwachung --- bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) bei System.Activator.CreateInstance(Type type, Boolean nonPublic) bei System.Activator.CreateInstance(Type type) bei MediaPortal.Core.PluginManager.PluginRuntime.InstantiatePluginObject(String typeName) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\PluginManager\PluginRuntime.cs:Zeile 238. bei MediaPortal.Core.Services.PluginManager.Builders.InstanceBuilder.BuildItem(PluginItemMetadata itemData, PluginRuntime plugin) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\Builders\InstanceBuilder.cs:Zeile 45. bei MediaPortal.Core.Services.PluginManager.PluginManager.RequestItem(PluginItemRegistration itemRegistration, Type type, IPluginItemStateTracker stateTracker) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\PluginManager.cs:Zeile 409. Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht. Site : System.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandle ByRef, Boolean ByRef) Source : mscorlib Inner Exception(s): Beim aufrufenden Thread muss es sich um einen STA-Thread handeln, da dies für viele Komponenten der Benutzeroberfläche erforderlich ist. Stack Trace: bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) bei System.Activator.CreateInstance(Type type, Boolean nonPublic) bei System.Activator.CreateInstance(Type type) bei MediaPortal.Core.PluginManager.PluginRuntime.InstantiatePluginObject(String typeName) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\PluginManager\PluginRuntime.cs:Zeile 238. bei MediaPortal.Core.Services.PluginManager.Builders.InstanceBuilder.BuildItem(PluginItemMetadata itemData, PluginRuntime plugin) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\Builders\InstanceBuilder.cs:Zeile 45. bei MediaPortal.Core.Services.PluginManager.PluginManager.RequestItem(PluginItemRegistration itemRegistration, Type type, IPluginItemStateTracker stateTracker) in M:\Programmieren\C#\MediaPortal 2\trunk - Kopie\MediaPortal\Source\System\MediaPortal.Core\Services\PluginManager\PluginManager.cs:Zeile 409.[/CODE] Since the exception is in German I can't understand it but basically the model has't been loaded, so when SkinEngine can't find it. I have seen the same problem when a model has a dependency (a 'using') on an assembly that can't be resolved at run-time, but I don't think that's the problem here. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Skinning contest: One month to go
Contact us
RSS
Top
Bottom