Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
FYI: As described in http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=119444&epslanguage=en
It works after downgrading nuget of find to version 9.0.0.2183.
I have tried to upgrade EPiServer Find from 8.2.2 to 9.2 and got some problems.
The project also uses DotNetOpenAuth and is built on MVC 5.
Error at startup:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
LoaderExceptions: Inheritance security rules violated by type: 'DotNetOpenAuth.Messaging.OutgoingWebResponseActionResult'. Derived types must either match the security accessibility of the base type or be less accessible.":"DotNetOpenAuth.Messaging.OutgoingWebResponseActionResult
This occurs on this line i my EPiServerFindInitialization:
SearchClient.Instance.Conventions.UnifiedSearchRegistry()();
.ForInstanceOf
.ProjectImageUriFrom(x => GetImageFromContentReference(x.Image))
.AlwaysApplyFilter(c => c.BuildFilter
The method ForInstanceOf is the problem, it loops through all types in alla assemblies with AppDomain.CurrentDomain.GetAssemblies().. SelectMany()
When I compare the EPiServer.Find.dll in the old version and the latest I do not see this GetAssemblies() in the old one.
Do anyone has a solution to this problem?