Re: Will MySQL Connector/ Net 5 run in medium trust?
Posted by: Bill Clark
Date: September 25, 2006 10:16PM

I just tried, and it fails on GoDaddy, which is medium trust.

Hello MySQL team, is anybody listening? PLEASE, PLEASE FIX THIS. Here are the instructions, even....

http://help.godaddy.com/article.php?article_id=1496&topic_id=102&&;
"http://help.godaddy.com/article.php?article_id=1496&topic_id=102&&";

How do I Recompile the MySQL Library to Run Under the Medium Trust Environment?
Last Updated: August 31, 2006 1:19 PM

We have configured the .NET 2.0 environment to run in a customized medium trust environment. The MySQL libraries must be modified to run under this environment. This article describes how to recompile the MySql/Connector library to run under this version of medium trust.

1. Download the source code for the MySQL Connector/Net from www.mysql.com.
2. Extract the contents of the zip file to a local directory.
3. Open mysql.csproj project file in Visual Studio.
4. Open the AssemblyInfo.cs file, and add the following code, in the using block, at the top of the file (if it is not already there):

using System.Security;

5. Add the following code to the assembly section of the file:

[assembly: AllowPartiallyTrustedCallers]

6. Recompile the dll.

You may now reference this dll from other projects. When you decide to publish your project to your hosting server, you need to upload this modified version of the dll to your bin directory.

Thanks,
Bill Clark
http://www.earthpoint.us



Edited 1 time(s). Last edit at 09/25/2006 10:20PM by Bill Clark.

Options: ReplyQuote


Subject
Written By
Posted
Re: Will MySQL Connector/ Net 5 run in medium trust?
September 25, 2006 10:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.