Bug #56580 Connector/Net 6.3.4 does not install on Windows Server 2008
Submitted: 6 Sep 2010 8:34 Modified: 28 Sep 2010 13:28
Reporter: Trent Lloyd Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:6.3.4 OS:Any
Assigned to: Reggie Burnett CPU Architecture:Any

[6 Sep 2010 8:34] Trent Lloyd
Description:
Connector/Net 6.1.3 (GA) will not install on Windows Server 2008 (Web Edition) clean installation, I ran into two problems

 (1) If version 4.0 is not installed, it fails because c:\windows\microsoft.net\v4.0.* does not exist
 (2) After I installed .NET 4.0, then this error appears.  I cannot find a solution to this.

InstallFiles: File: MySql.Data.Entity.dll,  Directory: ,  Size: 229888
MSI (s) (E0:AC) [15:20:26:196]: Assembly Error:The assembly is built by a runtime newer than the currently loaded runtime, and cannot be loaded.
MSI (s) (E0:AC) [15:20:26:196]: Note: 1: 1935 2:  3: 0x8013101B 4: IStream 5: Commit 6:  
MSI (s) (E0:A0) [15:20:26:196]: Note: 1: 1304 2: MySql.Data.Entity.dll 
Error 1304. Error writing to file: MySql.Data.Entity.dll.  Verify that you have access to that directory.

Part (1) appears to be related to http://bugs.mysql.com/bug.php?id=55311 - the fix seems to be to use the 4.0 rather than 2.0 version of InstallUtil.exe - of course now it wont work unless 4.0 is installed.

How to repeat:
N/A

Suggested fix:
N/A
[6 Sep 2010 8:41] Tonci Grgin
Thanks Trent.

Just adding, imo, important part of discussion: Problem could be in fact that FW 4.0 was installed and then removed from Add/Remove programs.
[6 Sep 2010 8:56] Trent Lloyd
Tonci; definitely not the case here.. this is a brand new install of server 2008 installed only yesterday.  No .NET versions other than the standard 2.0 were installed before now including 3.5
[8 Sep 2010 20:57] Thierry VIEIL
I tried to install Connector/NET
Windows (x86, 32-bit), ZIP Archive 6.3.4
(mysql-connector-net-6.3.4.zip) 

Operating system is windows 7 pro, at the end
of the install we see that it's doing a "Rolling back action"
, all files are deleted, installation failed.
Same problem on windows XP pro.

i tried to install 6.3.4 on windows 7 in
compatibility mode it tells me :
"Error writing to file: Mysql.Data.Entity.dll,
verify that you have access to that directory."

"The installer has encountered an unexpected error
installing this package. This may indicate a problem with
this package. The error code is 2350."

(i can install 6.2.3 with no trouble,
I tried 6.2.4 no trouble.)
[11 Sep 2010 6:27] CESAR PERALTA
Same problem here but i'm unable to find any logs at all... it just wipes clean all installed files at the very end of the installation. All frameworks installed up to 3.5
[13 Sep 2010 6:35] Tonci Grgin
Bug#56730 was marked as a duplicate of this report.
[13 Sep 2010 14:37] Tonci Grgin
Bug#56738 was marked as duplicate of this report.
[13 Sep 2010 15:45] Tonci Grgin
Bug#56752 was marked as duplicate of this report.
[14 Sep 2010 6:22] Tonci Grgin
Bug#56758 was marked as duplicate of this report.
[14 Sep 2010 8:24] George J. Capnias
Same problem here - latest package does not install in Windows 7/32bit.

I have tried to install from command with msiexec and full logging. I will attach the log file.
[14 Sep 2010 8:26] George J. Capnias
Connection/Net 6.3.4 install from command line log file

Attachment: mysql.data.log (application/octet-stream, text), 454.48 KiB.

[17 Sep 2010 16:09] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/118499

930 Reggie Burnett	2010-09-17
      fixed bug that was causing the installer to always try and use .NET 4 even though it might not be installed (bug #56580)
[17 Sep 2010 16:11] Reggie Burnett
Fixed in 6.3.5.  As soon as we verify this fix on Windows Server 2008 we'll push this out as a maintenance fix.  Sorry for the trouble.
[28 Sep 2010 13:28] Tony Bedford
An entry has been added to the 6.3.5 changelog:

MySQL Connector/NET 6.1.3 (GA) would not install on a Windows Server 2008 (Web Edition) clean installation. There were two problems:

If .NET framework version 4.0 was not installed, installation failed because c:\windows\microsoft.net\v4.0.* did not exist.

If .NET 4.0 was subsequently installed, then the following error was generated:

InstallFiles: File: MySql.Data.Entity.dll,  Directory: ,  Size: 229888
MSI (s) (E0:AC) [15:20:26:196]: Assembly Error:The assembly is built by a runtime newer
than the currently loaded runtime, and cannot be loaded.
MSI (s) (E0:AC) [15:20:26:196]: Note: 1: 1935 2:  3: 0x8013101B 4: IStream 5: Commit 6: 
MSI (s) (E0:A0) [15:20:26:196]: Note: 1: 1304 2: MySql.Data.Entity.dll 
Error 1304. Error writing to file: MySql.Data.Entity.dll. Verify that you have access to
that directory.