Troubleshooting installation errors
At the end of an on-prem installation, one of the following error messages might appear. Follow the instructions to correct the error.
If you get the Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.2.0' exception:
In the
web.config
file, add the following bindingRedirect tag:<dependentAssembly> <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1"/> </dependentAssembly>
Run the installation again.
If you get the Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory' exception:
In the
web.config
file, check that the following bindings exist:<dependentAssembly> <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" xmlns="urn:schemas-microsoft-com:asm.v1" /> <bindingRedirect oldVersion="0.0.0.0-3.19.3.10102" newVersion="3.17.2.31801" xmlns="urn:schemas-microsoft-com:asm.v1" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory.Platform" publicKeyToken="31bf3856ad364e35" culture="neutral" xmlns="urn:schemas-microsoft-com:asm.v1" /> <bindingRedirect oldVersion="0.0.0.0-3.19.3.10102" newVersion="3.17.2.31801" xmlns="urn:schemas-microsoft-com:asm.v1" /> </dependentAssembly>
Add any missing bindings to the
web.config
file.Run the installation again.
If you get the Could not load file or assembly 'Polly' exception:
Read this KB article to resolve the issue.
If you get the "Could not load file or assembly‘Microsoft.Extensions.Caching.Abstractions' or ‘Microsoft.Extensions.Caching.Memory’ exception:
In the
web.config
file, verify that the following bindings exist:<dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Caching.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-3.1.5.0" newVersion="3.1.5.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Extensions.Caching.Memory" publicKeyToken="adb9793829ddae60" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-3.1.5.0" newVersion="3.1.5.0"/> </dependentAssembly>
If any of the bindings are missing, add them to the
web.config
file, and run the installation again.Check if the
bin
folder contains theMicrosoft.Extensions.Caching.Abstractions.dll
file. If it does not, download the correct version of the file fromhttps://www.nuget.org
, and paste it into thebin
folder.