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

Vote:
 

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?

#120942
Apr 28, 2015 15:15
Vote:
 

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.

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