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
Support
other features (of release or svn versions)
'Gentle.Framework.ProviderFactory' threw an exception
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="K24A3" data-source="post: 1076299" data-attributes="member: 104233"><p>I have my own .NET app (not an MP plugin) that uses the dll's from the MediaPortal source to retrieve the Scheduled recordings.</p><p></p><p>I reference TVBusinessLayer.dll in my app and then call the code shown below.</p><p></p><p>It was working perfectly in MP 1.6, since I updated the referenced DLL to 1.7 and MediaPortal itself to 1.7, I am getting an exception:</p><p></p><p>TVData Initialize EXCEPTION: The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. System.TypeInitializationException: The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.</p><p> at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)</p><p> at System.Reflection.RuntimeModule.GetTypes()</p><p> at System.Reflection.Assembly.GetTypes()</p><p> at Gentle.Framework.ProviderRegistry.GetProviderInfo(Assembly assembly)</p><p> at Gentle.Framework.ProviderRegistry.GetProviderInfo(String assemblyName)</p><p> at Gentle.Framework.ProviderRegistry.RegisterProvider(String name, String assembly)</p><p> --- End of inner exception stack trace ---</p><p> at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)</p><p> at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)</p><p> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)</p><p> at Gentle.Common.MethodInvoker.Invoke(Object target, Object[] parameterValues)</p><p> at Gentle.Common.MethodDispatcher.Invoke(Object target, Hashtable parameters)</p><p> at Gentle.Common.CallbackTarget.Configure(Object target, XmlNode node)</p><p> at Gentle.Common.CallbackTarget.Configure(Object target, XmlNodeList nodes)</p><p> at Gentle.Common.ConfigurationMap.Configure(IList handlers, Object obj)</p><p> at Gentle.Common.Configurator.Configure(String configStoreName, Object instance)</p><p> at Gentle.Framework.ProviderRegistry..ctor()</p><p> at Gentle.Framework.ProviderFactory..cctor()</p><p> --- End of inner exception stack trace ---</p><p> at Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(String connectionString)</p><p></p><p></p><p></p><p>[code] tvBusinessLayer = new TvBusinessLayer();</p><p> </p><p></p><p> // This code was added to test the connection string</p><p> string sConn = "Server=PC2;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=30;";</p><p> Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(sConn);</p><p></p><p> // This line was the original line that threw the exception</p><p> tvBusinessLayer.CreateGroup(TvConstants.TvGroupNames.AllChannels);</p><p>[/code]</p><p></p><p>Both SetDefaultProviderConnectionString and CreateGroup throw the same exception.</p><p></p><p>The connection string is the same as in gentle.config, which works fine in MediaPortal itself.</p><p></p><p>Both MP and my app are on the same PC.</p><p></p><p>If I revert back to a previous version of my app which uses the v1.2 MP dll's it works fine again.</p><p></p><p>The DLL's references in my app was originally from MP v1.2, the TV Server was 1.6, this was working fine.</p><p>Perhaps there was a change in the dll v1.3 or higher?</p></blockquote><p></p>
[QUOTE="K24A3, post: 1076299, member: 104233"] I have my own .NET app (not an MP plugin) that uses the dll's from the MediaPortal source to retrieve the Scheduled recordings. I reference TVBusinessLayer.dll in my app and then call the code shown below. It was working perfectly in MP 1.6, since I updated the referenced DLL to 1.7 and MediaPortal itself to 1.7, I am getting an exception: TVData Initialize EXCEPTION: The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. System.TypeInitializationException: The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at System.Reflection.Assembly.GetTypes() at Gentle.Framework.ProviderRegistry.GetProviderInfo(Assembly assembly) at Gentle.Framework.ProviderRegistry.GetProviderInfo(String assemblyName) at Gentle.Framework.ProviderRegistry.RegisterProvider(String name, String assembly) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Gentle.Common.MethodInvoker.Invoke(Object target, Object[] parameterValues) at Gentle.Common.MethodDispatcher.Invoke(Object target, Hashtable parameters) at Gentle.Common.CallbackTarget.Configure(Object target, XmlNode node) at Gentle.Common.CallbackTarget.Configure(Object target, XmlNodeList nodes) at Gentle.Common.ConfigurationMap.Configure(IList handlers, Object obj) at Gentle.Common.Configurator.Configure(String configStoreName, Object instance) at Gentle.Framework.ProviderRegistry..ctor() at Gentle.Framework.ProviderFactory..cctor() --- End of inner exception stack trace --- at Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(String connectionString) [code] tvBusinessLayer = new TvBusinessLayer(); // This code was added to test the connection string string sConn = "Server=PC2;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=30;"; Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(sConn); // This line was the original line that threw the exception tvBusinessLayer.CreateGroup(TvConstants.TvGroupNames.AllChannels); [/code] Both SetDefaultProviderConnectionString and CreateGroup throw the same exception. The connection string is the same as in gentle.config, which works fine in MediaPortal itself. Both MP and my app are on the same PC. If I revert back to a previous version of my app which uses the v1.2 MP dll's it works fine again. The DLL's references in my app was originally from MP v1.2, the TV Server was 1.6, this was working fine. Perhaps there was a change in the dll v1.3 or higher? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
other features (of release or svn versions)
'Gentle.Framework.ProviderFactory' threw an exception
Contact us
RSS
Top
Bottom