Vulnerability in EPiServer.Forms
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?
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 ;)
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 :-)
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.dllMicrosoft.CodeAnalysis.Scripting.dllMicrosoft.CodeAnalysis.dllMicrosoft.CodeAnalysis.CSharp.Scripting.dllMicrosoft.CodeAnalysis.CSharp.dllMicrosoft.Build.Tasks.CodeAnalysis.dll
Ouch! Thanks for sharing. Good to know!
I have the same problem. Anyone found a solution?
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=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.":"System.IdentityModel.Tokens.ISecurityTokenValidator"
and I removed the "Microsoft.IdentityModel.Protocol.Extensions" from my packages. and worked like a charm.