Try our conversational search powered by Generative AI!

Find calls "Faulted" in Application Insights: Possibly Serialization and deserialization of 'System.Reflection.MethodBase' instances is not supported


Seems that an instances gets stuck somehow after or during startup and where Find calls throw this exception:

System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.Find.Api.Command.GetResponse[TResult](IJsonRequest request)
   at EPiServer.Find.Api.SearchCommand`1.Execute()
   at EPiServer.Find.Client.Search[TResult](SearchRequestBody requestBody, Action`1 commandAction)
   at EPiServer.Find.SearchExtensions.GetProjectedResult[TResult](ISearch`1 search, SearchContext context)
   at EPiServer.Find.SearchExtensions.GetResult[TResult](ISearch`1 search)
   at EPiServer.Find.Cms.SearchRequestExtensions.GetContentResult[TContentData](ITypeSearch`1 search, Int32 cacheForSeconds, Boolean cacheForEditorsAndAdmins)

DXP Log Stream also have these that looks related:

Serialization and deserialization of 'System.Reflection.MethodBase' instances is not supported. Path: $.TargetSite. Serialization and deserialization of 'System.Reflection.MethodBase' instances is not supported.   
Exception type    

Most instances seem to work fine and restarting seems to usually bypass the issue.

We have a support case running but anyone seen this too?

Feb 19, 2024 9:40

16.1.0 fixed this issue for us.

Mar 12, 2024 13:20
* 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.