If MIM gives an extension-dll-instantiation error view the stack trace. Often this is because Uplift includes a newer version of the Newtonsoft.Json dll than is usually expected by the Microsoft.Extensions.Logging library.
System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
This may be resolved by editing miiserver.exe.config and adding a binding redirect to the runtime section at the very bottom of the file. Right click on the Newtonsoft.Json.dll file in the MIM Extensions folder and click on the Details tab to find the current correct major version. For example, if the version is 12.0.1.22727 you can edit the file to read:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.MetadirectoryServicesEx" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="3.3.0.0-4.1.3.0" newVersion="4.1.4.0" />
</dependentAssembly>
<probing privatePath="Assemblies" />
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<probing privatePath="Assemblies" />
</assemblyBinding>
</runtime>
Comments
0 comments
Please sign in to leave a comment.