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
'System.Dynamic.ExpandoObject' does not contain a definition for 'alias'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'alias'
Line 135: space-before="0.2em" space-after="8pt">
Any ideas, thoughts or comments appreciated.
Can you post the code of your razor view ?
I'd suggest trying the same in a non PDF template and seeing if it happens there. The problem looks like a change in Umbraco - and probably won't see much support in the PDF creator forum.
Perhaps try an empty template with just the @Terms.pageName output in and see whether it happens?
Thanks everyone for the ideas to debug this page. What I found is that using internally defined page variables such as
Model.Name works fine,
when I use variables for the page content such as
Model.Description or Model.pageName then I get the error above.
<%@ Master Language="C#" MasterPageFile="~/masterpages/PDFMaster.master" AutoEventWireup="true" %>
This looks like a change to Umbraco, not a change to PDF creator. It seems that between versions they may have dropped support for dynamic Razor properties.
You'd be best moving your template properties to using IPublishedContent or ModelsBuilder.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted