Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

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

Vote:
 

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

SearchClient.Instance.Conventions.UnifiedSearchRegistry.ForInstanceOf()

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?

#145212
Feb 29, 2016 11:48
Vote:
 

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 ;)

#145218
Feb 29, 2016 12:26
Vote:
 

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 :-)

#145219
Feb 29, 2016 13:19
Vote:
 

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:
Microsoft.CodeAnalysis.VisualBasic.dll
Microsoft.CodeAnalysis.Scripting.dll
Microsoft.CodeAnalysis.dll
Microsoft.CodeAnalysis.CSharp.Scripting.dll
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.Build.Tasks.CodeAnalysis.dll

#152619
Aug 26, 2016 11:52
Vote:
 

Ouch! Thanks for sharing. Good to know!

#152622
Aug 26, 2016 12:26
Vote:
 

I have the same problem. Anyone found a solution?

#191785
Apr 27, 2018 16:53
Vote:
 

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=5.0.0.127, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.":"System.IdentityModel.Tokens.ISecurityTokenValidator"

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

#205030
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.