Medium trust

Medium trust

Postby cesarvegamx » Tue 06 Feb 2007 06:07

Does your MySQL connector works in a shared hosting using medium trust?
cesarvegamx
 
Posts: 37
Joined: Tue 30 Jan 2007 07:43

Postby Alexey » Tue 06 Feb 2007 06:36

Yes, broadly speaking, it does work.
Are you using direct/non-direct mode?
Are you going to install MySQLDirect .NET on a hosting providers' machine?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby cesarvegamx » Tue 06 Feb 2007 15:43

Not install. Just deploy an application in a hosting provider.

I don't know what exactly is that direct/non-direct mode, the idea is to just use it as any other provider, just like I use the one for SQL Server.
cesarvegamx
 
Posts: 37
Joined: Tue 30 Jan 2007 07:43

Postby Alexey » Wed 07 Feb 2007 07:08

If you use direct mode, you will need SocketPermissions in addition to default medium trust settings.
If you use non-direct mode, you'll need to set UnmanagedCode flag in SecurityPermission class.
The difference in direct/non-direct modes is that in non-direct mode you use libmySQL.dll to connect to a server. For more information about this please refer to our documentation.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL