Copied to clipboard

Flag this post as spam?

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


  • Sham Yemul 35 posts 98 karma points
    Dec 26, 2014 @ 09:27
    Sham Yemul
    0

    Macros are not working in UmbracoCms 7.1.8

    Hi,

    I have installed UmbracoCms 7.1.8 on windows 7 (No service pack) 32-bit.  I am using IIS 7.5
    and .net framework 4.5.


    When I add macros  in template and run/preview page then It gives me
    Error loading MacroEngine script (file: NewsEventsRss.cshtml)error.


    Please let me know how should I fix this problem?

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Dec 26, 2014 @ 12:07
    Alex Skrypnyk
    0

    Hi Sham,

    Please provide code of NewsEventRss.cshtml Are you using Master View ?

    THanks

  • Sham Yemul 35 posts 98 karma points
    Dec 26, 2014 @ 13:12
    Sham Yemul
    0

    I have used below line of code for NewsEventRss.

    @Umbraco.RenderMacro("CWS_NewsEventsRSS", new {RssDescription="This news is Important", RssNoItems="1", RssTitle="MH Assembly"})

    I am not using using master view.

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Dec 26, 2014 @ 13:15
    Alex Skrypnyk
    0

    Could you provide code of NewsEventsRss.cshtml?

    Thanks

  • Sham Yemul 35 posts 98 karma points
    Dec 30, 2014 @ 11:26
    Sham Yemul
    100

    <%@ Master Language="C#" MasterPageFile="~/masterpages/CWS_Master.master" AutoEventWireup="true" %>

    <asp:content ContentPlaceHolderId="headerLinksContent" runat="server">
        <!-- Razor Macro - Email A Friend Link -->
        <umbraco:Macro Alias="CWS_EmailAFriendLink" runat="server" />
    </asp:content>
    Hi,

    NewsEvent Code :=>

     

    <asp:content ContentPlaceHolderId="SideBarContent" runat="server">   
    </asp:content>

    <asp:content ContentPlaceHolderId="ChildContent" runat="server">
        <div id="main" class="content left clearfix" role="main">

            <h2 class="flashHeader">
                <strong><umbraco:Item field="pageName" runat="server" />.</strong>
                <umbraco:Item field="headerText" stripParagraph="true" runat="server" />
            </h2>

            <!-- Razor Macro - List News & Events -->
            <umbraco:Macro Alias="CWS_ListNewsEvents" runat="server" />
        </div>
    </asp:content>

  • Sham Yemul 35 posts 98 karma points
    Jan 01, 2015 @ 10:38
    Sham Yemul
    0

    Hi,

    Can any one help me? still I have a problem.

     

  • Dallas 133 posts 405 karma points
    Jan 01, 2015 @ 14:45
    Dallas
    0

    Hi Sham

    Check the Umbraco log file to see if the error details have been logged. If so, you can see the error description and line number. The log file is in <website directory>\App_Data\logs.

    You have provided two examples of code - one from a razor view file (showing the macro being called) and the other is a masterpage (CWS_Master.master). The error is occurring in the NewsEventsRss.cshtml file.

    Dallas

Please Sign in or register to post replies

Write your reply to:

Draft