This is a migrated thread and some comments may be shown as answers.

System.Security.Permissions.SecurityPermission

1 Answer 107 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Skcr
Top achievements
Rank 1
Skcr asked on 03 Jul 2015, 03:46 AM

when i add in web.config

<system.data>
    <DbProviderFactories>
      <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=6.9.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
    </DbProviderFactories>
  </system.data>

 

my applications gives error

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

trust level is restricted to medium by the host

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 06 Jul 2015, 02:28 PM
Hello Sk Cr,

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

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

Regards,
Ady
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Tags
Data Access Free Edition
Asked by
Skcr
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or