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