Bug #61916 Unhandled exception in MySQL Installer
Submitted: 19 Jul 2011 19:36 Modified: 29 Jul 2011 15:02
Reporter: Anders Karlsson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL for Windows: Installer Severity:S3 (Non-critical)
Version:5.5.14.0 OS:Windows (Windows 7 64-bit)
Assigned to: Iggy Galarza CPU Architecture:Any

[19 Jul 2011 19:36] Anders Karlsson
Description:
MySQL Installer throws an Unhandled Exceptioon when it installs only part of the set that it is out to install. In my case, I can't get it NOT to install Connector/.NET (yes, it is gone from all checkboxes, but when the download dialog comes, it is still there). A dialogs asks if I want to continue anyway, after the failed Connector/.NET download (which I didn't want anyway). After the download I get an exception in a "Unhandled exception" dialog with this info:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.
   at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
   at System.Diagnostics.PerformanceCounterLib.get_NameTable()
   at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists)
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
   at System.Diagnostics.PerformanceCounter.InitializeImpl()
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
   at WexInstaller.Core.IniTemplate.set_ServerType(IniServerType value)
   at WexInstaller.Core.IniTemplate.SetDefaults()
   at WexInstaller.Core.IniTemplate..ctor(String baseDir, String dataDir, String templateName, String outputDir)
   at WexInstaller.Plugins.ServerConfigurationController.Initialize(Boolean afterInstallation)
   at WexInstaller.InstallProgress.ProductMSIActionCompleted(Object sender, ProductMSIActionCompletedEventArgs pe)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WexInstaller
    Assembly Version: 1.0.15.0
    Win32 Version: 1.0.15.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer/MySQLInstaller.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
WexInstaller.Core
    Assembly Version: 1.0.4.0
    Win32 Version: 1.0.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer/WexInstaller.Core.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
rkefsjwy
    Assembly Version: 1.0.4.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
1jhiowbn
    Assembly Version: 1.0.4.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
StandardPlugins
    Assembly Version: 1.0.5.0
    Win32 Version: 1.0.5.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer/StandardPlugins.DLL
----------------------------------------
System.ServiceProcess
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
exgjqxjd
    Assembly Version: 1.0.4.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

How to repeat:
Run MySQL Installer and see what happens when one download fails. What is even more annoying is that the Installer is left of where it was, it doesn't continue. I want to configure the products I just downloaded, to no avail: The next button is greyed out, The MySQL Server (which I wanted to install) say Install complete, and Connector/.NET says "No mirror found".
[20 Jul 2011 10:37] Johannes Taxacher
Hi Anders,

on what exact system did you encounter that problem and what install type did you select (one of the predefined sets like "developer" or "full" or did you go with the "custom" selection)?
thanks in advance
[20 Jul 2011 11:36] Anders Karlsson
Added the version and my OS, I forgot that last time, sorry about that.
[20 Jul 2011 14:52] Johannes Taxacher
Hi Anders,

could you call the URL below in your browser and attach the resulting XML here to the report?

http://dev.mysql.com/downloads/get_mirror.php?filename=mysql-connector-net-6.3.7.msi 

thanks for you help
[20 Jul 2011 16:50] Anders Karlsson
<request>
−
<ip address="79.136.17.142" ccshort="SE" cclong="Sweden">
SE
                        
−
<mirror continent="europe" country="Sweden" country_code="SE" primary="0">
−
<http>
http://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/Connector-Net/mysql-conn...
</http>
−
<ftp>
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/Connector-Net/mysql-conne...
</ftp>
</mirror>
−
<archive>
http://downloads.mysql.com//mysql-connector-net-6.3.7.msi
</archive>
</ip>
</request>