Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was 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

Description

@yishaigalatzer

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions