Copied to clipboard

Flag this post as spam?

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


  • Sonja 133 posts 621 karma points
    Sep 28, 2018 @ 10:20
    Sonja
    0

    The function evaluation requires all threads to run.

    Hi I have a list view and I need to access the values of the list Items, but I'm getting The function evaluation requires all threads to run. . Here is the code:

    @using Umbraco.Web
    @using Umbraco.Web.Mvc
    
    @{
        Layout = "";
    }
    @{
    
        var UContentList = Model.Content.Children;
    
        var SContentList = new List<IMyProject.Models.MyContent>();
    
        foreach (var uContent in UContentList)
        {
            var SContent = new IMyProgram.Models.MyContent(
                uContent.pageTitle.ToString()
    
                );
            SContentList.Add(SContent);
        }
    

    please advice

  • David Peck 687 posts 1863 karma points c-trib
    Oct 01, 2018 @ 09:16
    David Peck
    0

    I think you're just having problems with debugging. The operation you're trying to do would require more than showing a know value.

    Try changing your code so that a variable is exposed with the computed value that you're after. You may also have some luck adding it to the watch window, and then step to the next line of code.

    If you don't mind paying $$$ then this might help too: https://www.oz-code.com/

  • Sonja 133 posts 621 karma points
    Oct 01, 2018 @ 09:47
    Sonja
    0
Please Sign in or register to post replies

Write your reply to:

Draft