SORRY, I just notice I posted in the wrong forum, I apologist.
I created a simple page with a Droplist using Visual Studio 2010 (VB.net) to test a MySQL database hosted in Godaddy; while the website runs fine locally with Full access, if I try to upload it to godaddy or run it locally with "<trust level="Medium"></trust>" I get an error.
System.Security.SecurityException: Request for the permission of type 'System.Net.SocketPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I googled and tried several different "solutions", trying to upload and use old versions of the Connector, modified versions and even compiling my own modifying the Assembly line "allowpartiallytrustedcallers" and nothing.
I also tried adding this to my web.config:
<system.data>
<DbProviderFactories>
<clear />
<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.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
Adding "allowpartiallytrustedcallers" to the assembly of my project to no Vail.
What it gets me is that the website is so simple (one droplist) and it doesnt even run (medium trust) locally.
I would appreciate any help in this matter, thought I am not in a hurry as Godaddy allows me to have one more MS SQL server database and that one seems to work for now.
I created a simple page with a Droplist using Visual Studio 2010 (VB.net) to test a MySQL database hosted in Godaddy; while the website runs fine locally with Full access, if I try to upload it to godaddy or run it locally with "<trust level="Medium"></trust>" I get an error.
System.Security.SecurityException: Request for the permission of type 'System.Net.SocketPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I googled and tried several different "solutions", trying to upload and use old versions of the Connector, modified versions and even compiling my own modifying the Assembly line "allowpartiallytrustedcallers" and nothing.
I also tried adding this to my web.config:
<system.data>
<DbProviderFactories>
<clear />
<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.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
Adding "allowpartiallytrustedcallers" to the assembly of my project to no Vail.
What it gets me is that the website is so simple (one droplist) and it doesnt even run (medium trust) locally.
I would appreciate any help in this matter, thought I am not in a hurry as Godaddy allows me to have one more MS SQL server database and that one seems to work for now.