Unable to Upgrade from 10.1.4 to 10.2.2 – License4Net.dll issue

by Nov 8, 2017

After the November 6th issue were the Idera SQL Diagnostic Manager desktop client stopped working was resolved (Licence4Net), I wanted to upgrade from SQL Diagnostic Manager 10.1.4 to 10.2.2.

I downloaded the x64 installer, started the installation, it shows my database in the setup menu and when I clicked next, I received the following .Net error message:

Could not retrieve keys from repositoryExternal component has thrown an exception.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Exception: Could not retrieve keys from repositoryExternal component has thrown an exception.
at Installer_form_application.LicenseHelper.GetLicenseSummary(Boolean useSqlAuth, String sqlUser, String sqlPassword, String instance, String database)
at Installer_form_application.RepositoryDetailsDM.backgroundWorkerForLicenseInfo_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1649.1 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
—————————————-
SQLDMCWFMasterInstaller
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/ATS/Version%2010.2.2%20-%20IderaSQLdmInstallationKit-x64/x64/SQLDMCWFMasterInstaller.exe
—————————————-
Idera.SQLdm.Common
Assembly Version: 10.2.2.58
Win32 Version: 10.2.2.58
CodeBase: file:///C:/ATS/Version%2010.2.2%20-%20IderaSQLdmInstallationKit-x64/x64/Idera.SQLdm.Common.DLL
—————————————-
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1649.1 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
—————————————-
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1649.1 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
—————————————-
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
—————————————-
TracerX
Assembly Version: 2.1.809.18205
Win32 Version: 2.1.809.18205
CodeBase: file:///C:/ATS/Version%2010.2.2%20-%20IderaSQLdmInstallationKit-x64/x64/TracerX.EXE
—————————————-
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
—————————————-
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1649.1 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
—————————————-
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
—————————————-
CWFInstallerService
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/ATS/Version%2010.2.2%20-%20IderaSQLdmInstallationKit-x64/x64/CWFInstallerService.DLL
—————————————-
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1649.1 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
—————————————-
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
—————————————-
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
—————————————-
License4Net
Assembly Version: 5.1.3749.18339
Win32 Version: 5, 1, 0, 0
CodeBase: file:///C:/ATS/Version%2010.2.2%20-%20IderaSQLdmInstallationKit-x64/x64/License4Net.DLL
—————————————-
msvcm80
Assembly Version: 8.0.50727.8428
Win32 Version: 8.00.50727.8428
CodeBase: file:///C:/Windows/WinSxS/amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.8428_none_88dcdb0b2fb19957/msvcm80.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.

After opening a ticket with support, sending them some logs and trying a couple of things, I noticed that one of the error lines:

CodeBase: file:///C:/ATS/Version%2010.2.2%20-%20IderaSQLdmInstallationKit-x64/x64/License4Net.DLL 

referenced the "License4Net.dll" file.

I took my good copy of License4Net.dll and copied it into the installation path, re-ran the installer and it worked! I just wanted to post this incase anyone else has the same issue.

Thanks,

Terry