Ran into an issue with nested layouts and wanting to render a section in a top level layout, but define it in the view which uses a 'child' layout (master) page. This was generating a runtime error of:
The following sections have been defined but have not been rendered for the layout page...
I posted some code to the asp.net forum and github. A nice workaround was supplied by 'Imran Baloch'