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 10091 karma points MVP 2x admin c-trib
    Nov 18, 2011 @ 12:57
    Ismail Mayat
    0

    issue after upgrade to 4.7.1

    Just upgraded to 4.7.1 now some of my working razor macros are throwing errors eg

    The best overloaded method match for 'System.Web.WebPages.Html.HtmlHelper.Raw(string)' has some invalid arguments

    This was writing out rich text edit field.

    Any ideas?

    Regards

    Ismail

     

  • Lee 1130 posts 3088 karma points
    Nov 18, 2011 @ 13:06
  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Nov 18, 2011 @ 13:10
    Anthony Dang
    1

    Is that System.Web.WebPages from Umbraco or from your local .net dlls?

    Try swapping them?

     

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Nov 18, 2011 @ 13:10
    Ismail Mayat
    0

    Lee,

    No joy i now get 

    Error loading Razor Script 
    'System.Web.HtmlString' does not contain a definition for 'ToXml'

     

    Regards

    Ismail

     

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Nov 18, 2011 @ 13:12
    Ismail Mayat
    0

    Anthony,

    This is inline razor macro in template.

    Regards

    Ismail

  • Lee 1130 posts 3088 karma points
    Nov 18, 2011 @ 13:12
    Lee
    0

    What version did you upgrade from?

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Nov 18, 2011 @ 13:17
    Ismail Mayat
    0

    4.7 to 4.7.1

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 18, 2011 @ 13:22
    Sebastiaan Janssen
    0

    There unfortunately was a breaking change that slipped through, please provide the Razor and I'll help fix. :)

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 18, 2011 @ 13:23
    Sebastiaan Janssen
    1

    Oh, just thought, in 4.7.1 you don't have to do Html.Raw on an RTE any more, try it without.

  • Atoosa Khoda 96 posts 148 karma points
    Apr 29, 2015 @ 07:34
    Atoosa Khoda
    0

    I've changed to @Html.Raw(Model.GetProperty("contentBody").Value) will see how it goes. It's a bit random so will have to wait and see if reoccurs.

  • Atoosa Khoda 96 posts 148 karma points
    Apr 29, 2015 @ 07:58
    Atoosa Khoda
    0

    Sorry wrong post.

Please Sign in or register to post replies

Write your reply to:

Draft