I'm a new user of MySqlDirect.Net. I read lot of post on your forum about licensing but I saw anything about this.
First I add the license to my project. Everything is ok on my computer. When I run it from my ISP I have this error.
Code: Select all
Attempt to access the method failed
[MethodAccessException: Attempt to access the method failed.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1036
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +114
System.Activator.CreateInstance(Type type, Object[] args) +16
System.SecurityUtils.SecureCreateInstance(Type type, Object[] args) +106
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +178
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41
System.ComponentModel.LicenseManager.IsValid(Type type) +20
CoreLab.MySql.MySqlConnection..ctor() +105
CoreLab.MySql.MySqlConnection..ctor(String connectionString)
I'm thinking that is MysqlDirect.net problem because this exception occur on the new of the MysqlConnection object.
What can I do?
It is very urgent to have an solution.
Thanks
MysqlDirect 3.20.9.0
Visual studio 2005
Asp.net 2.0