Hi,
I got the components in runtime working using Visual Web Developer 2005 Express Edition, but when trying to connect to my database using "MySqlConnection conn = new MySqlConnection(connectionString);" I get the error "Attempt to access the method failed". I know this has got to do with the trust level settings of my ISP. But that is exact one of the reasons why I would like the use the CoreLab components.
Can you help?
Guy
Attempt to access the method failed.
CoreLab.MySql assembly doesn't contain unsafe code, it contains AllowPartiallyTrustedCallers attribute, it is fully CLS compliant. These actions allow using MySQLDirect .NET on web servers.
We think the problem might be in your server configuration. Contact your ISP to configure the server to allow using of CoreLab.MySql assembly.
We think the problem might be in your server configuration. Contact your ISP to configure the server to allow using of CoreLab.MySql assembly.
AllowPartiallyTrustedCallers & trust level
Thanks for the answer.
I'll ask them to do so. Can you tell me what actions they should do to allow the use of the CoreLab.MySql assembly ?
Thanks,
Guy
I'll ask them to do so. Can you tell me what actions they should do to allow the use of the CoreLab.MySql assembly ?
Thanks,
Guy
The problem can be resolved as follows:
You have to addinto section and
subsection into
section in file
Or you can set "trust level" attribute to "Full" in \web.config file.
Besides, you should download new version (3.50) from our site and use it, because this problem was not fixed in 3.20 version.
You have to add
Code: Select all
Code: Select all
Code: Select all
Or you can set "trust level" attribute to "Full" in \web.config file.
Besides, you should download new version (3.50) from our site and use it, because this problem was not fixed in 3.20 version.