Posts tagged .NET 4.0

MySQL Connector/Net 6.3.3 (beta 2) has been released

MySQL Connector/Net 6.3.3, a new version of the all-managed .NET driver for MySQL has been released. This is a beta release and is intended to introduce you to the new features and enhancements we are planning. This release should not be used in a production environment.  It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/6.3.html] and mirror sites (note that not all mirror sites may be up to date at this point of time – if you can’t find this version on some mirror, please try again later or choose another download site.)

The new features or changes in this release are:

  • Visual Studio 2010 RTM support
  • New sql editor.  Create a new file with a .mysql extension to see it in action
  • Please check the changelog and release notes for more information

What we know may be broken
Documentation is not yet integrated into VS 2010.

Please let us know what else we broke and how we can make it better!

MySQL Connector/Net 6.3.2 beta has been released

Sorry for this not getting out sooner.  Connector/Net 6.3.2 was released several days ago but somehow the release announcement was never made.
MySQL Connector/Net 6.3.2, a new version of the all-managed .NET driver for MySQL has been released. This is a beta release and is intended to introduce you to the new features and enhancements we are planning. This
release should not be used in a production environment.  It is now available in source and binary form from
[http://dev.mysql.com/downloads/connector/net/6.3.html] and mirror sites (note that not all mirror sites may be up to date at this point of time - if you can’t find this version on some mirror, please try again later
or choose another download site.)
The new features or changes in this release are:
  • Visual Studio 2010 RTM support
  • New sql editor.  Create a new file with a .mysql extension to see it in action
What we know may be broken
Documentation is not updated yet and is not integrated into VS 2010
Please let us know what else we broke and how we can make it better!

Custom Installer and .NET 4 problem? Solved!

I recently encountered a problem with custom installers and .NET 4. If you are using an Installer-derived class in an assembly that allows partially trusted callers then you may see this when you attempt to install with InstallUtil:

Inheritance security rules violated by type: ‘Class’. Derived types must either match the security accessibility of the base type or be less accessible.

After a little googling, I found this post that helped me solve part of the issue.  The other thing you need to do is go to your installer class and add the following attributes to it.  These will demand full trust for the installer class.

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]

That’s it!  Your installer class should work with .NET 2 and .NET 4 now.