Re: MySql Connector/Net and ASP.Net medium trust
Posted by: Stephen Bai
Date: November 24, 2006 07:36AM

Hi guys,

To make the currently available MySql Connector/Net 1.x work in ASP.Net medium trust environment, the following steps are required:-
1) Recompile MySQL.Data.dll with "AllowPartiallyTrustedCallers" attribute
2) Grant System.Net.SocketPermission to the application

Step (2) will require your web host to grant you this permission, as MySql Connector requires sockets.

For convenience, you can download a recompiled MySQL.Data.dll (MySql Connector/Net 1.0.7) from my website at http://www.riversprint.com/rs/downloads.aspx.

Cheers!
Stephen

p/s: More usage details at http://www.riversprint.com/rs/downloads.aspx ;)

Options: ReplyQuote




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.