Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

EPiServer Find error after upgrade - DotnetOpenAuth


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:

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

Apr 28, 2015 15:15

FYI: As described in

It works after downgrading nuget of find to version

Apr 29, 2015 14:12
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.