Copied to clipboard

Flag this post as spam?

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


  • Tommy Turkijevic 7 posts 28 karma points
    Nov 15, 2012 @ 09:29
    Tommy Turkijevic
    0

    Error in Examine after upgrading from 4.10.0 to 4.10.1

    Has anyone started getting a problem after upgrading from 4.10.0 ?

    I receive "The type initializer for 'Examine.ExamineManager' threw an exception" on code that worked on 4.10.0,

    se below, i extraced the value out to a variable for debugging purposes (x), the error occurs when converting node to Media.

    @{

        var imageSlides = umbraco.uQuery.GetNode(-1).GetDescendantNodesByType("SlideShowImage").ToList();

        foreach (var doc in imageSlides )
       {
    var x = doc.GetProperty("slideImage").Value;
            var m = new umbraco.MacroEngines.DynamicNode(int.Parse(x));

            @:<img src="@m.NiceUrl?width=942&height=350&scale=both" data-thumb="@m.NiceUrl" alt="@doc.GetProperty("imageTitle").Value" title="@doc.GetProperty("imageText").Value"/>

        } 

    /Tommy

Please Sign in or register to post replies

Write your reply to:

Draft