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

Adding ~ for Layout path and Html.PartialAsync throws an error #821

Closed
kirthik opened this issue Jul 18, 2014 · 1 comment
Closed

Adding ~ for Layout path and Html.PartialAsync throws an error #821

kirthik opened this issue Jul 18, 2014 · 1 comment

Comments

@kirthik
Copy link
Contributor

kirthik commented Jul 18, 2014

If my index.cshtml has
Layout = "~/Views/Shared/_Layout.cshtml"

I see an error - System.InvalidOperationException: The layout view '~/Views/Shared/_Layout.cshtml' could not be located.
If I remove the ~ things work fine.

@Eilon Eilon changed the title Adding ~ for Layout path throws an error Adding ~ for Layout path and Html.PartialAsync throws an error Jul 18, 2014
@Eilon
Copy link
Contributor

Eilon commented Jul 18, 2014

Also doesn't work for Html.PartialAsync. Seems like maybe a core kind of thing.

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

5 participants