Copied to clipboard

Flag this post as spam?

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


  • James Crane 34 posts 80 karma points
    Mar 26, 2011 @ 14:20
    James Crane
    0

    umbraco.presentation.templateControls.Macro

    I need to get a reference to an Umbraco Macro from another Macro - and I've found the generic control with a recursive search. However, I now need to cast it to an Umbaco Macro and I can't for the life of me find the namespace 'umbraco.presentation.templateControls.Macro'

    I've included these directives:

     

    using umbraco.cms.businesslogic.macro;

    using umbraco.DataLayer;

    using umbraco.BusinessLogic;

     

     

    Casting using businesslogic.Macro gives a casting error - wrong type.

    Help appreciated.

    JC

     

     

     

     

  • James Crane 34 posts 80 karma points
    Mar 27, 2011 @ 03:26
    James Crane
    0

    HI,

    OK fixed this. My development project was targetting 3.5, while my Umraco installtion was tagetting 4.0. So the umbaco dll I was using wasn't working correctly (wrong environment.)

    It appears you can't run 4.0 in VS 2008, so I've reverted to a previous version of Umbraco and we're away.

    JC

Please Sign in or register to post replies

Write your reply to:

Draft