FSharp.Core error after upgrading GN4 1.6

Build 1501 on 14/Nov/2017  This topic last edited on: 26/Oct/2016, at 16:44

Problem

If you updated a GN4 Rel1.6 installation and you have the following error with cmd4.exe, srv4.exe and/or back4.exe:

Unhandled Exception: System.IO.FileLoadException: 

Could not load file or assembly 'FSharp.Core, Version=4.0.0.0, 

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 

The located assembly's manifest definition does not match the assembly reference. 

(Exception from HRESULT: 0x80131040)

Cause

Missing a configuration item

Solution

Modify the related config file

Example for cmd4

Edit cmd4.exe.config and add at the end before the tag </configuration>

  <runtime>

 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

   <dependentAssembly>

         <assemblyIdentity

           name="FSharp.Core"

           publicKeyToken="b03f5f7f11d50a3a"

           culture="neutral"/>

         <bindingRedirect

           oldVersion="2.0.0.0"

           newVersion="4.3.0.0"/>

         <bindingRedirect

           oldVersion="4.0.0.0"

           newVersion="4.3.0.0"/>

   </dependentAssembly>

 </assemblyBinding>

  </runtime>