1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sitefinity projects does not compile

Sitefinity projects does not compile

5 posts, 0 answered
  1. Sunil
    Sunil avatar
    32 posts
    Registered:
    27 Jan 2004
    18 Jun 2008
    Link to this post
    I create a project with Sitefinity 3.2 and when I compile the website I get a number of errors for 'CommentsLine.ascsx'. One of the errors is 'Error 22 Unknown server tag 'sfWeb:CommentItem'. C:\Program Files\telerik\Sitefinity3.2\WebSites\SampleProject\Sitefinity\ControlTemplates\Blogs\CommentsList.ascx 15 '.

    Why am I getting this error? It is a builtin control ( i.e. CommentsList.ascx) and so it should not give any errors.

  2. Mike
    Mike avatar
    22 posts
    Registered:
    05 Mar 2008
    18 Jun 2008
    Link to this post
    Sunil,

    I can relate to your frustration. We ran into the same situation and found that by adding

    <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %> 

    to the top of Sitefinity\ControlTemplates\Blogs\CommentsList.ascx and Sitefinity\ControlTemplates\Generic_Content\CommentsList.ascx it will build. I cannot tell you how those tags registrations were omitted from the released product, as i would have expected someone on the sitefinity team to have tested/built it before releasing it to us.

    I hope this helps,
    Mike
  3. Sunil
    Sunil avatar
    32 posts
    Registered:
    27 Jan 2004
    18 Jun 2008
    Link to this post
    Mike,

    Thank you for that tip.

    I added that line, and it did remove the old error but a lot of new errors are showing up now. For example, a new error I see is : Error 15 The resource object with key 'Author' was not found. C:\Program Files\telerik\Sitefinity3.2\WebSites\SampleProject\Sitefinity\ControlTemplates\News\ContentViewItemList.ascx 39 

    I think the developers at Telerik did not test whether new websites compiles in Visual Studio 2005, and that is why I am getting all these problems.
    A strange thing I noticed was when I downloaded the 'Community Edition' then any website created from there compiled perfectly in Visual Studio 2005.
  4. Mike
    Mike avatar
    22 posts
    Registered:
    05 Mar 2008
    18 Jun 2008
    Link to this post
    Sunil,

    That error is due to the ContentViewItemList.ascx.resx file missing in the ControlTemplates\News\App_LocalResources folder. I cant attach files here for some reason, but you can just copy that file from either blogs or events and make any needed text changes in there.

    I think you will run into one other place with the same issue but i do not recall which one it is..

    Mike
  5. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    19 Jun 2008
    Link to this post
    Hello Mike,

    To troubleshoot the compiler errors, do the following:

    1.       Template path:
    ~/Sitefinity/ControlTemplates/Blogs/CommentsList.ascx

    Action:

    a.       Add the following line at the top of the template
    <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>

    2.       Template path:
    ~/Sitefinity/ControlTemplates/Generic_Content/CommentsList.ascx
    Action:

    a.       Add the following line at the top of the template
    <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>

    3.       Copy this file:
    ~/Sitefinity/ControlTemplates/Blogs/App_LocalResources/ContentViewItemList.ascx.resx
    to this folder :
    ~/Sitefinity/ControlTemplates/News/App_LocalResources/

    4.  Open this file:
    ~/Sitefinity/ControlTemplates/News/ContentViewItemList.ascx
    and remove (delete) following markup on lines 29, 30 and 31 :
    <p>
       <asp:Literal ID="content" runat="server"></asp:Literal>
    </p>


    Best wishes,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
5 posts, 0 answered