The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. (1 Viewer)

Nicoolai

MP Donator
  • Premium Supporter
  • February 9, 2011
    84
    3
    38
    Denmark
    Denmark Denmark
    Hi,
    I'm trying to make some small modifcations, to the mptvclient code.
    Unfortunately, I am having some problems, with this line, in ServerInterfaces.cs:
    Code:
    Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(connStr);
    The error I get is this:

    {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.Module._GetTypesInternal(StackCrawlMark& stackMark)
    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._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    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.MethodInvokable.Invoke(Object target)
    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.Common.Configurator.Configure(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)
    at MPTvClient.ServerInterface.Connect(String hostname) in C:\Files\nis\Visual Studio\Projects\MPTvClient\ServerInterface.cs:line 83}
    I assume it has something to do with my connectionstring, but I don't really understand why. I have tested the string, without any problems.
    My connectionString (MySQL):
    Server=someserver;Port=1863;Database=mptvdb;User ID=TVUser;Password=SomePassword;charset=utf8;Connection Timeout=300;
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom