I have a master layout and then a child layout for certain views.
In the master layout, I have:
@RenderSection("Scripts", required: false)
The child layout references the master layout itself.
But I keep getting an exception on views where there are @section Scripts
The exception is:
InvalidOperationException: The following sections have been defined but have not been rendered by the page at x
x is the child layout page.
Surely the master layout should still render the script?
Am I missing a step?