Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Sep 29, 2017 @ 11:28
    Ismail Mayat
    0

    backoffice search error

    I have installed via nuget into umbraco 7.7.1. Can rebuild index no problem. However when I do backoffice search I get the following error:

    )]}', {"Message":"An error has occurred.","ExceptionMessage":"Could not load type 'Umbraco.Web.Models.ContentEditing.EntityTypeSearchResult' from assembly 'umbraco, Version=1.0.6471.23334, Culture=neutral, PublicKeyToken=null'.","ExceptionType":"System.TypeLoadException","StackTrace":" at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)\r\n at System.Reflection.RuntimeMethodInfo.getReturnType()\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.GetReturnType(MethodInfo methodInfo)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.InitializeProperties(MethodInfo methodInfo)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor..ctor(HttpControllerDescriptor controllerDescriptor, MethodInfo methodInfo)\r\n at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem..ctor(HttpControllerDescriptor controllerDescriptor)\r\n at System.Web.Http.Controllers.ApiControllerActionSelector.GetInternalSelector(HttpControllerDescriptor controllerDescriptor)\r\n at System.Web.Http.Controllers.ApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher._1.MoveNext()"}

    Not sure if this due to this version of umbraco and ISearchableTree swapability?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Sep 29, 2017 @ 14:39
    Ismail Mayat
    0

    So further digging it is due to ISearchableTree change. In the azuresearch code you have in BackOfficeAzureSearchApiController Search method that returns

    IEnumerable<EntityTypeSearchResult>
    

    This is no longer there in 7.7.1.

    Regards

    Ismail

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Sep 30, 2017 @ 10:02
    Darren Ferguson
    0

    Thanks Ismail - we'll get this update in when we start working on a 7.7 site!

  • Arif shamsudin 1 post 71 karma points
    Dec 21, 2017 @ 09:12
    Arif shamsudin
    0

    Hi, any update on this issue? I am currently facing the same problem. Thanks.

  • Runi Juul Thomsen 1 post 71 karma points
    Apr 26, 2018 @ 11:45
    Runi Juul Thomsen
    0

    Having same issue on a 7.10.4 site. Are you still maintaining this project? I will try to compile a fix if you are not maintaining.

    Did some digging - and it looks like someone removed a type called: EntityTypeSearchResult - causing the compilation error when the service is invoked.

    The source is here: https://github.com/darrenferguson/UmbracoAzureSearch/blob/master/Moriyama.AzureSearch.Umbraco.Application/Controllers/BackOffice/BackOfficeAzureSearchApiController.cs

    If you look at Umbracos implementation of the same Controller ( https://github.com/umbraco/Umbraco-CMS/blob/7ee510ed386495120666a78c61497f58ff05de8f/src/Umbraco.Web/Editors/EntityController.cs)

    you will notice that the signature for SearchAll has changed (ln 112) from returing IEnumerable<EntityTypeSearchResult> to now to return IDictionary<string, TreeSearchResult>

    Do I simply need to provide a new implementation of EntityTypeSearchResult or do I need to reimplement the SearchAll method?

    Anyone have some pointers?

  • Darren Welch 23 posts 136 karma points c-trib
    Feb 07, 2019 @ 16:09
    Darren Welch
    0

    Hi, I'm investigating using this package with a 7.7.4 version site. I am facing the same issue as above.

    Is there likely to be an update to this package? Thanks

Please Sign in or register to post replies

Write your reply to:

Draft