title: Cannot perform CAS Asserts in Security Transparent methods security level issue
body: <p>I  encountered this error on host.</p>
  
  <pre><code>  System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods
     at System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark&amp; stackMark, Int32 create)
     at System.Security.SecurityRuntime.Assert(PermissionSet permSet, StackCrawlMark&amp; stackMark)
     at System.Security.PermissionSet.Assert()
     at MySql.Data.MySqlClient.MySqlParameter.SetTypeFromValue()
     at MySql.Data.MySqlClient.MySqlParameter.set_Value(Object value)
     at MySql.Data.MySqlClient.MySqlParameter..ctor(String parameterName, Object value)
  </code></pre>
  
  <p>But in localhost project succesfully run.I'm using asp.net 4.0 and mysql.In some resources say I have to change trust level but I cannot change.Because my hosting firm doesn't allow web config file change for this subject.How can I change trust level without web config change.How can I solve this problem?
  Thanks in advance</p>