Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Try this instead:
XPathNodeIterator nodesroot = UComment.Library.XsltLibrary.GetCommentsForNode(Model.Id);
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!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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 error is referencing the following line:
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?
Try this instead:
XPathNodeIterator nodesroot = UComment.Library.XsltLibrary.GetCommentsForNode(Model.Id);
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!
is working on a reply...