Copied to clipboard

Flag this post as spam?

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


  • pronto 61 posts 172 karma points
    Jan 10, 2014 @ 12:27
    pronto
    0

    Using Global.asax to display code upon Macro Error

    Hi All,

    I'm playing around with Umbraco 7 for the first time and I'd like to run a bit of code or show a custom error message if a macro error ever occurs, instead of the default setting.

    I've implemented the <MacroErrors>inline</MacroErrors> into my umbracoSettings file and currently receive the yellow screen of death upon an error; I'm now unsure what do do next and have been trying to following the documentation at http://our.umbraco.org/Documentation/Reference/Events/application-startup# but unfortunately it's a bit out of my depth to understand it. 

    I believe I need to edit my Global.asax file, but I've used some of the code in the documentation that causes the a Parser Error with the message "The content in the application file is not valid.".

    Is there a really simple method out there to achieve this? Do I just need to edit the Global.asax file or is there something other than this that needs to be configured?

    Kind Regards,
    pronto

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies