2 posts, 0 answers
  1. Skcr
    Skcr avatar
    6 posts
    Member since:
    Jan 2010

    Posted 02 Jul 2015 Link to this post

    when i add in web.config

          <remove invariant="MySql.Data.MySqlClient" />
          <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />


    my applications gives error

    [SecurityException: System.Security.Permissions.SecurityPermission]
    MySql.Data.MySqlClient.MySqlClientFactory..cctor() +26

    trust level is restricted to medium by the host

  2. Ady
    Ady avatar
    588 posts

    Posted 06 Jul 2015 Link to this post

    Hello Sk Cr,

    Can you add the following to the web.config and try again?

        <trust level="Full" />
     Do let me know the results.

    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  3. DevCraft banner
Back to Top