Copied to clipboard

Flag this post as spam?

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


  • Niek 5 posts 25 karma points
    Feb 06, 2012 @ 12:01
    Niek
    0

    Razor/uComment missing assembly reference problem

     

    I'm trying to use Razor with the uComment package but I'm getting the following error when saving the Razor file:

    The type or namespace name 'XSLTLibrary' does not exist in the namespace 'UComment' (are you missing an assembly reference?)

    The error is referencing the following line:

    XPathNodeIterator nodesroot = UComment.XSLTLibrary.GetCommentsForNode(Model.Id);

    The UComment.dll is in the Umbraco /bin directory and Umbraco is aware of the UComment namespace. I've also checked the UComment source but the XSLTLibrary class should be in the UComment namespace.

    Am I missing something?

     

  • DT 4 posts 24 karma points
    Jun 19, 2012 @ 17:02
    DT
    0

    Try this instead:

    XPathNodeIterator nodesroot = UComment.Library.XsltLibrary.GetCommentsForNode(Model.Id);

     

     

  • Mark 4 posts 24 karma points
    May 22, 2013 @ 15:38
    Mark
    0

    That fixed line 9 for me, and this fixed line 31:

    <img class="photo avatar avatar-32 photo" width="32" height="32" src="@UComment.Library.XsltLibrary.getGravatar(email, 40, "")" alt="Gravatar of @name"/>

    Let the adventure continue!

Please Sign in or register to post replies

Write your reply to:

Draft