Copied to clipboard

Flag this post as spam?

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


  • Dan Soule 33 posts 194 karma points
    Feb 03, 2017 @ 17:52
    Dan Soule
    0

    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.

    • Dan
  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Feb 04, 2017 @ 09:54
    Dave Woestenborghs
    0

    Hi Dan,

    Can you post the code of your razor view ?

    Dave

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Feb 06, 2017 @ 08:57
    Darren Ferguson
    0

    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.

  • Dan Soule 33 posts 194 karma points
    Feb 06, 2017 @ 17:41
    Dan Soule
    0

    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.

  • Dan Soule 33 posts 194 karma points
    Feb 06, 2017 @ 18:02
    Dan Soule
    0

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






  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Feb 07, 2017 @ 10:01
    Darren Ferguson
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft