Bug #61908 Correct registry entries not made during installation.
Submitted: 19 Jul 2011 17:11 Modified: 5 Apr 2012 21:48
Reporter: Andy Jones Email Updates:
Status: Can't repeat Impact on me:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version:6.4.3 OS:Windows (Windows 7 Pro 64-Bit)
Assigned to: CPU Architecture:Any
Tags: installer, references, registry

[19 Jul 2011 17:11] Andy Jones
Description:
When you install the MySql Connector/Net it does not create the appropriate entry in the registry for .NET 2.0.

The key "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\MySQL Connector Net 6.4.3 v2.0" exists but the expected key "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\MySQL Connector Net 6.4.3 v2.0" does not. (I don't know if the one that exists should be there too or is the misplaced one from v2.0.)

Because of this the MySql.Data assembly is not available to reference in the Visual Studio 2010 (Premium) "Add References" window. An additional issue is that unattended builds fail because MSBuild cannot find the assembly either.

This has been identified on a completely clean built PC. The correct key DOES exist on my development PC which has been around for a while and has had the connector upgraded over time.

How to repeat:
Get a clean Windows 7 Pro 64-bit PC and install the MySql Connector/Net. Check the registry location "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\MySQL Connector Net 6.4.3 v2.0" to see if the entry exists.

Suggested fix:
The key can be added manually to the registry then VS2010 and MSBuild are both happy.
[28 Jul 2011 19:23] Reggie Burnett
I tested this by installing 6.4.3 on a x64 windows 7 machine in which I had made sure to delete those paticular keys prior to isntallation.  The following keys were created

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\MySQL Connector Net 6.4.3

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\MySQL Connector Net 6.4.3 v2.0

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\MySQL Connector Net 6.4.3 v4.0
[5 Apr 2012 21:48] Andy Jones
Did you install it on a machine that only has VS2010 on it? If VS2008 or VS2005 are installed then it works but not if it doesn't.