Copied to clipboard

Flag this post as spam?

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


  • Tim Laughlin 1 post 21 karma points
    Apr 27, 2012 @ 21:48
    Tim Laughlin
    0

    Medium Trust and @Library

    Am I correct in determining that @Library is not compatable in a medium trust site? Specifically StripHtml.

    Here why I think so:

    Error loading Razor Script SubDocs.cshtml
    That assembly does not allow partially trusted callers.

    I get thsi with this code:

    @Library.Truncate(@Library.StripHtml(@item.BodyText),300)

    however I don't get it with this code

    @Library.Truncate(@item.BodyText,300)

    Any an all insight is appreciated.  

    Thanks

    Tim

Please Sign in or register to post replies

Write your reply to:

Draft