ClsLogger.EXE Crashes with Unhandled Exception

TLDR: I think it’s broken – or as James Arber implied on Twitter, it might have made it out the gate prematurely.

My suggestion: Do not install this version!


Out of the blue recently Microsoft updated the Skype for Business 2015 Debugging Tools version from 6.0.9319.73 to the interestingly-named (well, numbered) 7.0.1678.1.1.

Before you can install it you’ll need to uninstall the previous version:

AnotherVersionIsAlreadyInstalled

Oh, and before you install it you’ll need to add VC++ 2015 Redist, version 14.0.23026:

DebugToolsRequiresVC  2015Redist

So you download and install it:

InstallVC  14.0.23026

And then install the updated Debug Tools:

WelcomeToDebugToolsSetup

… Then when you run ClsLogger, it crashes with an unhandled exception:

DebugToolsCrash

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Rtc.Management.WritableConfig, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The system cannot find the file specified.
File name: 'Microsoft.Rtc.Management.WritableConfig, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)

The Debugging Starts Here

I owe a debt of gratitude here to fellow Sydney-based MVP John Liu who quickly jumped on my Tweet and linked me to a great article by Scott Hanselman that helped me from this point forward.

The crash happens on every SfB server I’ve run this on, as well as my x64 client PC (from where I normally only run Snooper). My Windows 10 Creator machine happens to have Visual Studio on it, and the Fusion Viewer (fusionvw.exe), which pointed me to the cause of my woes.

If you want to try this at home, here are the Registry Keys to set (@ Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion) to enable its logging:

FusionRegistryKeys

Here’s what it revealed:

LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files/Skype for Business Server 2015/Debugging Tools/Microsoft.Rtc.Management.WritableConfig.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Skype for Business Server 2015/Debugging Tools/Microsoft.Rtc.Management.WritableConfig/Microsoft.Rtc.Management.WritableConfig.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Skype for Business Server 2015/Debugging Tools/Microsoft.Rtc.Management.WritableConfig.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Skype for Business Server 2015/Debugging Tools/Microsoft.Rtc.Management.WritableConfig/Microsoft.Rtc.Management.WritableConfig.EXE.
LOG: All probing URLs attempted and failed.

OK, so it’s just looking for a DLL and/or an EXE in the same folder as the Debug Tools. We’ve all been there – someone just forgot to add them to the install package…

Shopping around I found quite a few versions of “Microsoft.Rtc.Management.WritableConfig.DLL” around the place – check out C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Rtc.Management.WritableConfig – but alas my efforts at copying any into the Debugging Tools folder all resulted in failure. Now when you run ClsLogger it crashes with “the located assembly’s manifest definition does not match the assembly reference”.

ManifestDefinitionDoesNotMatch

Summary

I think James nailed it: this one made it out the door too soon. Looking at the version number you could reasonably guess it’s accidentally leaked from the rumoured on-premises “vNext”. I expect we’ll either see a re-release & rebuild (with the missing DLLs), or it will vanish and we’ll see 6.0.9319.73 reinstated. Watch this space.

Update – 24th June

Cookie reports he’s been able to open Mac client log files with this version of Snooper, so maybe there is some benefit to be had:

 

Download Links:

The latest Debugging Tools. 7.0.1678.1.1 as at the time of writing.

My backup copy of SkypeForBusinessDebugTools-6.0.9319.73.msi

VC++ 2015 redist (14.0.23026)

VC++ 2015 redist Update 3 (14.0.24212)

Revision History

24th June 2017. Added a link to a copy of the last known working version of the Debug Tools & Cookie’s tweet.

20th June 2017. This is the initial post.

– G.

6 Comments

  1. Any idea where / how I can find a link to the working version? I just spent an hour trying to get in installed because of VC++ requirements and once I did, it just keeps crashing. Very frustrating.

Leave a Reply

Your email address will not be published. Required fields are marked *

... and please just confirm for me that you're not a bot first: Time limit is exhausted. Please reload the CAPTCHA.