Problem with VS2010 and mysql connector 6.5.4http://forums.asp.net/t/1795038.aspx/1?Problem+with+VS2010+and+mysql+connector+6+5+4Sun, 22 Apr 2012 01:24:19 -040017950384942439http://forums.asp.net/p/1795038/4942439.aspx/1?Problem+with+VS2010+and+mysql+connector+6+5+4Problem with VS2010 and mysql connector 6.5.4 <p>Hi all:</p> <p>I have a big problem and i very confuse with mysql connector in medium trust using asp.net. I use the 6.5.4 version of the connector and my dlls are copied in the bin folder of the app (I have a hosting provider that not has the dll of the connector registered in the GAC and run in medium trust) <br> The problem: I have a simple demo app in asp.net (vs2010) using framework 4 under medium trust. When I use the controls of asp.net and asp.net makes a connection automatically (with the connection of the webconfig) the connection to my mysql DB work fine. But when I make the connection manually using this: <br> <br> MySqlConnectionStringBuilder myconnString = new MySqlConnectionStringBuilder(&quot;Server=hostingproviderserver;Database=test;Uid=root;Pwd=test;&quot;); <br> MySqlConnection myconn = new MySqlConnection(myconnString.ConnectionString); <br> myconn.Open(); <br> <br> I receive a permission error: <br> <br> &quot;The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.&quot; <br> <br> The problem is that I use in the same app the two type of connection (manual and automatic) and I receive an error with a manual connection. All this in medium trust because if I test the app in a full trust environment, the two ways working OK. I need the help of the community. <br> <br> Thanks and Regards. <br> <br> Felix</p> 2012-04-20T08:26:36-04:004942443http://forums.asp.net/p/1795038/4942443.aspx/1?Re+Problem+with+VS2010+and+mysql+connector+6+5+4Re: Problem with VS2010 and mysql connector 6.5.4 <p>Reinstall VS2010</p> 2012-04-20T08:28:52-04:004942450http://forums.asp.net/p/1795038/4942450.aspx/1?Re+Problem+with+VS2010+and+mysql+connector+6+5+4Re: Problem with VS2010 and mysql connector 6.5.4 <p>Are you sure that is the solution?, <span id="result_box" class="short_text" lang="en"> <span class="hps">you had</span> <span class="hps">the same problem?</span></span></p> <p>Thanks and Regards</p> <p>Felix</p> 2012-04-20T08:32:25-04:004944410http://forums.asp.net/p/1795038/4944410.aspx/1?Re+Problem+with+VS2010+and+mysql+connector+6+5+4Re: Problem with VS2010 and mysql connector 6.5.4 <p>Use Full Trust in your IIS settings.</p> 2012-04-22T01:24:19-04:00