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?
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
is working on a reply...
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.