Copied to clipboard

Flag this post as spam?

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


  • Adi 79 posts 183 karma points
    Mar 28, 2014 @ 13:11
    Adi
    0

    Error loading Partial View script (file: ~/Views/MacroPartials/ezSearch.cshtml)

    Hi,

    I am having some issue with ezSearch and it is very simila to this one

    http://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/48460-Search-error-when-searching-for-test-keyword?p=0#comment176864

    Here is the screenshot of errorenter image description here

    Can anyone hep me with this please?

    Thank you, Adi

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 28, 2014 @ 13:18
    Jan Skovgaard
    0

    Hi Adi

    What version of Umbraco are you using?

    /Jan

  • Adi 79 posts 183 karma points
    Mar 28, 2014 @ 15:03
    Adi
    0

    Thanks for quick reply Jan, I really appreciate it!

    Umbraco v6.1.6 (Assembly version: 1.0.5021.24867)

    Best regards, Adi

  • Adi 79 posts 183 karma points
    Mar 29, 2014 @ 06:19
    Adi
    0

    Any suggestion?

    Thank you, Adi

  • Adi 79 posts 183 karma points
    Mar 30, 2014 @ 18:15
    Adi
    0

    Can anyone give me some straight answer on this forum regarding my question?!?

    I am stuck over here and it seems this forum is of no use. Perhaps you should cancel it because there is no real purpose?

    BR, Adi

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 30, 2014 @ 21:09
    Jan Skovgaard
    0

    Hi Adi

    Sorry for the late reply here - But unfortunately I don't have a clue since I have not played much with this package. Asked about the version since sometimes people unintentionally install a package that is not supported in a specific version of Umbraco for some reason.

    Keep in mind that this is an open source 3rd party package, which has been made by volunteers in their spare time. I'm sure that if they see this post they will try and provide an answer. If I see the same issue and figure out how to solve it I'll post my way of fixing it for sure.

    Hope someone else can point you in the right direction.

    Cheers, Jan

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Apr 01, 2014 @ 18:14
    Paul Wright (suedeapple)
    0

    I think this might be the fact that the searcher is including unpublished nodes, that wont have a Url

    You can try checking if the node "isVisible()" before assigning it the results var...

     var results = searcher.Search(criteria2)
                .Where(x => !Umbraco.IsProtected(int.Parse(x.Fields["id"]), x.Fields["path"]) &&  Umbraco.Content(int.Parse(x.Fields["id"])).IsVisible()  ||
                (Umbraco.IsProtected(int.Parse(x.Fields["id"]), x.Fields["path"]) &&
                Umbraco.Content(int.Parse(x.Fields["id"])).IsVisible() &&
                 Umbraco.MemberHasAccess(int.Parse(x.Fields["id"]), x.Fields["path"])))
                    .ToList();
  • Openfield Creative 62 posts 222 karma points
    Jul 08, 2014 @ 23:04
    Openfield Creative
    0

    I was having the same issue, once I finally tracked down what was actually causing the error. Paul's code snippet above did the trick.

  • Christian Lyck 16 posts 98 karma points
    Jun 10, 2016 @ 15:29
    Christian Lyck
    0

    HI I just had the same problem.

    The problem is that there are two different dll's both using SearchResult

    Error loading partial view macro (View: ~/Views/MacroPartials/ezSearch.cshtml). Exception: System.Web.HttpCompileException (0x80004005): c:\inetpub\temp\DWASFiles\sites\ab8da887-9b05-44d4-8f08-214900382d70\VirtualDirectory0\site\wwwroot\Views\MacroPartials\ezSearch.cshtml(430): error CS0104: 'SearchResult' is an ambiguous reference between 'Examine.SearchResult' and 'Umbraco.Web.PublishedContentModels.SearchResult'

    Go to: Partial View Macro Files -> ezSearc

    In the bottom choose the one you want for ezSearch it is "Examine"

    public IEnumerable<Examine.SearchResult> AllResults { get; set; }
    public IEnumerable<Examine.SearchResult> PagedResults { get; set; }
    

    Best Christian Lyck

Please Sign in or register to post replies

Write your reply to:

Draft