Layouts Pages Custom Errors – Change Web.Config In Layouts!

If you are working with a SharePoint 2010 application page, and sitting there wondering why when you change the callstack and customErrors element in the root web.config for the web application to Off and it’s not taking effect, you have to change it in the web.config in the layouts directory too.

I was scratching my head for a bit on this this morning!