Copied to clipboard

Flag this post as spam?

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


  • xzuttz 9 posts 29 karma points
    Mar 21, 2013 @ 16:00
    xzuttz
    0

    NullReferenceException when trying to Edit Macros

    Hello,

    when i try to edit any of my macros, i get the following exception:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.PopulatePartialViewFiles() +675
       Umbraco.Web.UI.Umbraco.Developer.Macros.EditMacro.OnLoad(EventArgs e) +45
       System.Web.UI.Control.LoadRecursive() +54
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

    I've downloaded the latest nightly build binaries and replaced them with the ones i had - no change.

    What can be causing this?

    Thanks!

  • Tom Fulton 2030 posts 4984 karma points c-trib
    Mar 21, 2013 @ 18:25
    Tom Fulton
    0

    Just some thoughts - do you have the following folders created?

    /Views/MacroPartials
    /App_Plugins/ 

  • xzuttz 9 posts 29 karma points
    Mar 22, 2013 @ 14:00
    xzuttz
    0

    Thanks for your reply.

    I downloaded EditMacro from the online source code and replaced it with mine. 

    This fixed the problem :) 

  • Lee 1117 posts 3051 karma points
    Jun 17, 2013 @ 11:11
    Lee
    0

    Can you explain what you mean by downloaded EditMacro? I have the same issue on an upgraded site. I have all the correct folders. 

  • Tom Fulton 2030 posts 4984 karma points c-trib
    Jun 17, 2013 @ 16:39
    Tom Fulton
    0

    I'm guessing it was /umbraco/developer/macros/editmacro.aspx, but not quite sure :)

  • xzuttz 9 posts 29 karma points
    Jun 17, 2013 @ 17:16
    xzuttz
    0

    Yes, replaced /umbraco/developer/macros/editmacro.aspx - if you've upgraded try to download the source files from the internet and replace them with your current.

Please Sign in or register to post replies

Write your reply to:

Draft