Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

RenderBody must be called from a Layout Page" provides no file information #1919

Closed
yishaigalatzer opened this issue Jan 29, 2015 · 0 comments
Assignees
Milestone

Comments

@yishaigalatzer
Copy link
Contributor

Repro:
Create new K Web project, comment out RenderBody() call in _Layout.cshtml:
Error message "InvalidOperationException: RenderBody must be called from a layout page."
Imagine a very large project with multiple layouts, perhaps very large files with lots of lines. Determining which one failed to call RenderBody() can be annoying. This error should list the file for which it's throwing the exception.

@MattGal

aspnet/Razor#280

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants