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.
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.
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?
Hi Sham,
Please provide code of NewsEventRss.cshtml Are you using Master View ?
THanks
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.
Could you provide code of NewsEventsRss.cshtml?
Thanks
<%@ 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>
Hi,
Can any one help me? still I have a problem.
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
is working on a reply...