As you probably know, there were some problems using our connector in medium-trust level scenarios. Most hosting services provide MySQL access. Most of these hosting providers run their .NET web apps using medium trust. Prior to 6.5, our connector required the hosting provider to either run the application in full trust or to enable broad privileges like SocketPermission globally. Many hosting providers are unwilling to do that. So fully enabling our provider to run in a partial trust scenario was a strongly requested feature. The request was a very simple task: enable Connector/Net to work correctly in a medium-trust level environment when the library is installed in the GAC.
The implementation consisted of including the necessary security imperative asserts so the CLR allows our code to perform the operations where it needs permission to perform.
The permissions that we needed were: …[Read more]