Render Failed for component AFP.Content.Components.ContentPlaceHolder Parsing error occurred in template 'Page-20-Region-main' -> Errors while compiling a Template.
Please try the following to solve the situation:
* If the problem is about missing/invalid references or multiple defines either try to load
the missing references manually (in the compiling appdomain!) or
Specify your references manually by providing your own IReferenceResolver implementation.
See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
Currently all references have to be available as files!
* If you get 'class' does not contain a definition for 'member':
try another modelType (for example 'null' to make the model dynamic).
NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
Or try to use static instead of anonymous/dynamic types.
More details about the error:
- error: (27, 7) Operator '>' cannot be applied to operands of type 'method group' and 'int'
Temporary files of the compilation can be found in (please delete the folder): C:\WINDOWS\TEMP\RazorEngine_zfpxmdne.ps0
The template we tried to compile is:
------------- START -----------
@if ( Model.Count > 0 ){
}
------------- END -----------
The generated source code is:
------------- START -----------
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace CompiledRazorTemplates.Dynamic {
using System;
using System.Collections.Generic;
using System.Linq;
public class RazorEngine_b843294be3df476a8738afca91317e31 : Content.RazorEngine37.AHPRazorTemplateBase {
public RazorEngine_b843294be3df476a8738afca91317e31() {
}
public override void Execute() {
WriteLiteral("\t\t\n\t\n\n");
if ( Model.Count > 0 ){
WriteLiteral("
\n");
}
}
}
}
------------- END -----------
List of loaded Assemblies:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\CMS.AFP.Server\v4.0_1.0.0.0__22e6261d2f9274e9\CMS.AFP.Server.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO.Compression\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\AFP.Core.Initialisation.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\Microsoft.Data.Edm.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\Microsoft.Data.OData.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\Microsoft.Data.Services.Client.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\Microsoft.Web.Infrastructure.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\Microsoft.Web.XmlTransform.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\NuGet.Core.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\93bc35af-fcb9-49ef-93ce-4314fe5191ae.1.0.0.16\System.Spatial.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\03c06d11-3c96-4b69-b813-b84c97f4c250.1.0.0.4\AFP.Estateweb.Legislation.TenancyFees.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\0bb07727-125f-46d6-93b0-923a54efe345.1.0.0.22\AFP.Estateweb.Developments.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\0bb07727-125f-46d6-93b0-923a54efe345.1.0.0.22\AFP.Estateweb.Developments.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\0bb07727-125f-46d6-93b0-923a54efe345.1.0.0.22\AFP.Estateweb.Developments.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\0cb18f20-1f16-4aae-a900-88461d027161.1.0.0.13\AFP.Estateweb.Contacts.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\11bf1c59-d4e9-44c8-8026-e544c511f0fd.1.0.0.285\AFP.Content.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\11bf1c59-d4e9-44c8-8026-e544c511f0fd.1.0.0.285\AFP.Content.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\11bf1c59-d4e9-44c8-8026-e544c511f0fd.1.0.0.285\Content.RazorEngine37.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\11bf1c59-d4e9-44c8-8026-e544c511f0fd.1.0.0.285\RazorEngine.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\11bf1c59-d4e9-44c8-8026-e544c511f0fd.1.0.0.285\System.Web.Razor.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\199c1fec-5682-475b-9895-bd24de617597.1.0.0.22\AFP.Favourites.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\199c1fec-5682-475b-9895-bd24de617597.1.0.0.22\AFP.Legislation.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\2120de6a-90d7-45e9-8a67-70d2ac22e80a.1.0.0.66\AFP.Estateweb.Staff.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\2120de6a-90d7-45e9-8a67-70d2ac22e80a.1.0.0.66\AFP.Estateweb.Staff.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\2120de6a-90d7-45e9-8a67-70d2ac22e80a.1.0.0.66\AFP.Estateweb.Staff.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\AFP.CMS.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\AFP.CMS.Routing.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\AFP.CMS.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.AFP.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.AFP.Routing.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.AFP.UI.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.Base.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.Client.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.UI.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\310695bb-7769-43be-a60c-6cbca39d1a9e.1.0.0.133\CMS.User.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\3ba03168-a5e3-497c-a151-7ce85020297a.1.0.0.23\AFP.Estateweb.CIP.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\3ba03168-a5e3-497c-a151-7ce85020297a.1.0.0.23\AFP.Estateweb.CIP.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\40cc55d8-d29d-4d57-a5e4-64962668b1c7.1.0.0.42\AFP.jQuery.Pagination.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\40cc55d8-d29d-4d57-a5e4-64962668b1c7.1.0.0.42\AFP.jQuery.ShareThis.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\40cc55d8-d29d-4d57-a5e4-64962668b1c7.1.0.0.42\AFP.jQuery.Validation.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4893e44f-989b-4f0e-9105-4092248d84eb.1.0.0.138\AFP.WebUI.Core.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\AFP.Core.Authoring.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\AFP.Core.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\AFP.Core.Services.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\AFP.Core.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\AutoMapper.Data.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\AutoMapper.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.AFP.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.AFP.UI.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Base.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Client.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Contacts.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Data.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Email.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Files.Beta2.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.FTP.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Security.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.UI.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.UI.WebControls.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.Webservices.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Core.XML.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\EFCache.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\EFFilter.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\EntityFramework.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\EntityFramework.SqlServer.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\Newtonsoft.Json.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\System.Net.Http.Formatting.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\System.Web.Http.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\4aae7e96-f1ae-44ef-adcc-0c880d7b5fa2.1.0.0.164\System.Web.Http.WebHost.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\745c28b9-0763-46a2-b8ce-1e7128148649.1.0.0.19\AFP.GoogleAnalytics.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\745c28b9-0763-46a2-b8ce-1e7128148649.1.0.0.19\AFP.Statistics.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\76f59d8d-c4a0-4d15-bf79-c268bb0ee277.1.0.0.131\AFP.Articles.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\76f59d8d-c4a0-4d15-bf79-c268bb0ee277.1.0.0.131\AFP.Articles.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\76f59d8d-c4a0-4d15-bf79-c268bb0ee277.1.0.0.131\AFP.Articles.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\77b40817-8800-4795-a1e7-8a962c4cdd5d.1.0.0.1\AFP.Estateweb.Bridge.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\84d71555-370f-41c0-a680-dbe5901294f0.1.0.0.207\AFP.Estateweb.Property.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\9b33ac1c-037a-4964-a872-8d4d8bd413c8.1.0.0.3\AFP.Files.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\9d691cb6-7edb-4ff5-9bdd-48cb6e74a621.1.0.0.110\AFP.WebUI.Presentation.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\9eaa041a-4a9e-4117-ae3c-58b712d3869d.2.0.0.19\AFP.Galleries.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\a2e924ad-ffc1-4ad9-8320-5b9623742aea.1.0.0.1\AFP.PropertyFile.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\cb169711-361f-4144-9a23-b9c9dccf77c4.1.0.0.158\AFP.Estateweb.Core.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\cb169711-361f-4144-9a23-b9c9dccf77c4.1.0.0.158\AFP.Estateweb.Core.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\cb169711-361f-4144-9a23-b9c9dccf77c4.1.0.0.158\AFP.Estateweb.Core.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\cb169711-361f-4144-9a23-b9c9dccf77c4.1.0.0.158\EstateWeb.Website.WebServices.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\d6164dfa-0244-4440-959c-af55aaa40b24.1.0.0.34\AFP.Management.Tools.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\d6164dfa-0244-4440-959c-af55aaa40b24.1.0.0.34\Microsoft.AspNet.SignalR.Client.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\d8680671-3a77-43aa-ab26-f97525acfae2.1.0.0.12\AFP.Estateweb.GBS.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\d8680671-3a77-43aa-ab26-f97525acfae2.1.0.0.12\AFP.Estateweb.GBS.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\d9cb79fc-1f1f-4bad-a631-6c0d487a6619.1.0.0.32\AFP.Estateweb.Offices.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\d9cb79fc-1f1f-4bad-a631-6c0d487a6619.1.0.0.32\AFP.Estateweb.Offices.Templating.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\da727601-d9a8-4958-bcfd-4c3849e65042.2.0.0.3\AFP.Estateweb.Map.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\eb4dfbcd-4255-404f-a185-d4c23745b663.1.0.0.50\AFP.Menu.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ec5e3bbc-b3c7-47c2-bc79-a2111355a7ed.1.0.0.88\AFP.Registration.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff460897-def9-493a-a31f-b99d39c3c8b0.1.0.0.99\AFP.Estateweb.Branding.Affiliates.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff460897-def9-493a-a31f-b99d39c3c8b0.1.0.0.99\AFP.Estateweb.Branding.Affiliates.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff460897-def9-493a-a31f-b99d39c3c8b0.1.0.0.99\AFP.Estateweb.Branding.SocialMedia.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff71430e-6548-4a19-9abe-a1eb85c6cdc2.1.0.0.84\AFP.Estateweb.Branding.TwitterFeed.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff71430e-6548-4a19-9abe-a1eb85c6cdc2.1.0.0.84\AFP.Estateweb.Branding.TwitterFeed.Entities.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff71430e-6548-4a19-9abe-a1eb85c6cdc2.1.0.0.84\Hammock.dll
Loaded Assembly: C:\WINDOWS\TEMP\afp\100\ff71430e-6548-4a19-9abe-a1eb85c6cdc2.1.0.0.84\TweetSharp.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Framework\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.SqlXml\v4.0_4.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll
Loaded Assembly: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll
Loaded Assembly: C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Types\10.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll Content.RazorEngine37 at Content.RazorEngine37.RazorEngineTemplatingService.Parse(String Markup, Object Model, String UniqueKey) at AFP.Content.WebControls.ContentControl.RenderContent(TemplateContentData Information, ICanvas Parent, Boolean Append) at AFP.Content.Components.ContentPlaceHolder.oContentRegionControl_ItemDatabound(Object sender, ContentRegionItemEventArgs e) at CMS.UI.WebControls.ContentRegion.InitialiseControls(ClientInformation oClientInformation) at CMS.UI.WebControls.ContentRegion.InitRender(ClientInformation ClientInformation) at AFP.Content.Components.ContentPlaceHolder.Render() at AFP.Content.WebControls.ContentControl._Lambda$__5(IComponent x)Errors while compiling a Template.
Please try the following to solve the situation:
* If the problem is about missing/invalid references or multiple defines either try to load
the missing references manually (in the compiling appdomain!) or
Specify your references manually by providing your own IReferenceResolver implementation.
See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
Currently all references have to be available as files!
* If you get 'class' does not contain a definition for 'member':
try another modelType (for example 'null' to make the model dynamic).
NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
Or try to use static instead of anonymous/dynamic types.
More details about the error:
- error: (27, 7) Operator '>' cannot be applied to operands of type 'method group' and 'int'
Temporary files of the compilation can be found in (please delete the folder): C:\WINDOWS\TEMP\RazorEngine_zfpxmdne.ps0
The template we tried to compile is:
------------- START -----------
@if ( Model.Count > 0 ){
}
------------- END -----------
The generated source code is:
------------- START -----------
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace CompiledRazorTemplates.Dynamic {
using System;
using System.Collections.Generic;
using System.Linq;
public class RazorEngine_b843294be3df476a8738afca91317e31 : Content.RazorEngine37.AHPRazorTemplateBase {
public RazorEngine_b843294be3df476a8738afca91317e31() {
}
public override void Execute() {
WriteLiteral("\t\t\n\t\n\n");
if ( Model.Count > 0 ){
WriteLiteral("