Copied to clipboard

Flag this post as spam?

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


  • Tom C 86 posts 220 karma points
    Feb 10, 2013 @ 21:35
    Tom C
    0

    Umbraco 6 problem

    I have just upgraded to Umbraco 6, and a couple of pages are throwing errors which have inline Razor.

    The following line now gives an error ..

    var d1 = new List<string>(); 

    it is not a specific error, but it seems to be interpreting the <string> as markup rahter than the generic argument that went before, and so now it gives an error complaining there is no { to end the code segment, but I tracked it down to this line which is generating it.

    I would be grateful if anyone has any ideas.

    Thanks

    Tom

  • Steven Lemmens 30 posts 71 karma points
    Feb 10, 2013 @ 21:57
    Steven Lemmens
    0

    If you could just more of your script (or the entire script) we may have a better idea of what's going on ... The razor script probably cannot be parsed because it cannot determine where the HTML begins and the script ends.

  • Tom C 86 posts 220 karma points
    Feb 10, 2013 @ 23:37
    Tom C
    0

    Thank you for your reply... in simplifying the code to fulfil your request, I haev solved my problem.

    In the code above the line in question i had things like

     var image = Model.NodeById(@item.InnerText);

    and removing the @ from the item seems to have fixed it , though as I said this all worked fine in 4.11.1 , but there we go.

    Tom

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies