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.
Could not load file or assembly 'System.Diagnostics.DiagnosticSource'
If you get the Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.2.0' exception:
-
In the
web.configfile, add the following bindingRedirect tag:RequestResponse<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.
Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'
If you get the Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory' exception:
-
In the
web.configfile, 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.configfile. -
Run the installation again.
Could not load file or assembly 'Polly'
If you get the Could not load file or assembly 'Polly' exception:
-
Read this KB article to resolve the issue.
Could not load file or assembly ‘Microsoft.Extensions.Caching.Abstractions' or ‘Microsoft.Extensions.Caching.Memory’
If you get the "Could not load file or assembly‘Microsoft.Extensions.Caching.Abstractions' or ‘Microsoft.Extensions.Caching.Memory’ exception:
-
In the
web.configfile, verify that the following bindings exist:RequestResponse<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.configfile, and run the installation again. -
Check if the
binfolder contains theMicrosoft.Extensions.Caching.Abstractions.dllfile. If it does not, download the correct version of the file fromhttps://www.nuget.org, and paste it into thebinfolder.