System.Dynamic.ExpandoObject error after upgrading from Umbraco 7.5.6 to 7.5.8
All was working fine using localhost in Umbraco 7.5.6 - I upgraded to version 7.5.8 and now I get the error below:
'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'
Source Error:
Line 135: space-before="0.2em" space-after="8pt">
Line 136:
Line 139:
Source File: c:\Users\dan.soule\Documents\My Web Sites\HCProductCMS758\AppData\TEMP\Razor\inline-eb261d3521fafc3a016fbbca67cd7144.cshtml Line: 137
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?
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.
System.Dynamic.ExpandoObject error after upgrading from Umbraco 7.5.6 to 7.5.8
All was working fine using localhost in Umbraco 7.5.6 - I upgraded to version 7.5.8 and now I get the error below:
'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'
Source Error:
Line 135: space-before="0.2em" space-after="8pt"> Line 136: Line 139:
Source File: c:\Users\dan.soule\Documents\My Web Sites\HCProductCMS758\AppData\TEMP\Razor\inline-eb261d3521fafc3a016fbbca67cd7144.cshtml Line: 137
Any ideas, thoughts or comments appreciated.
Hi Dan,
Can you post the code of your razor view ?
Dave
Hi Dan,
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.
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" %>
Hi Dan,
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.
Thanks.
is working on a reply...