Try our conversational search powered by Generative AI!

Loader exception in EPiServer.Find.UnifiedSearch.UnifiedSearchRegistryExtensions.ForInstanceOf(IUnifiedSearchRegistry registry)


Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.


When I inspect the LoaderExceptions property I in the current case see that it can't find Microsoft.IdentityModel.Clients.ActiveDirectory 2.21.

In another project I had the same issue with a version of Microsoft.AspNet.WebApi.Cors and I have a couple of reports from workmates also running into the same error with different references.

Are we doing something run with nuget or is there something in Epis libraries that needs to be more forgiving?

Feb 29, 2016 11:48

Tried reinstalling each nuget package separately? I know there's been a few problems there with similar symptoms...

Just a shot in the dark that one though ;)

Feb 29, 2016 12:26

So I updated the problematic library to 2.23. No luck.

Then I closed VS.

Emptied packages folder.

Emptied C:\Users\j.doe\AppData\Local\Temp\Temporary ASP.NET Files

Deleted all DLLs of the problematic library through search in the SLN tree.

Started VS and restored packages.

Built and now I got through the convention registrations on startup :-)

Feb 29, 2016 13:19

We got this problem when trying to use Find in the Commerce Manager.

Ir order to get it to work we had to delete the following dll:s from the commerce bin folder:

Aug 26, 2016 11:52

Ouch! Thanks for sharing. Good to know!

Aug 26, 2016 12:26

I have the same problem. Anyone found a solution?

Apr 27, 2018 16:53

you can put a try catch and and in exeption get loader exeption property.

in my case was "Could not load type 'System.IdentityModel.Tokens.ISecurityTokenValidator' from assembly 'System.IdentityModel.Tokens.Jwt, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.":"System.IdentityModel.Tokens.ISecurityTokenValidator"

and I removed the "Microsoft.IdentityModel.Protocol.Extensions" from my packages. and worked like a charm.

Jun 26, 2019 13:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.