Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout cannot be located #57

Open
judowalker opened this issue Jun 17, 2017 · 0 comments
Open

Layout cannot be located #57

judowalker opened this issue Jun 17, 2017 · 0 comments

Comments

@judowalker
Copy link

Given a view that specifies a layout:

@{
    Layout = "_Layout";
}

When I call:

UsingTemplateFromFile($@"{Directory.GetCurrentDirectory()}\EmailTemplates\Verify.cshtml", viewModel);

I get an error that the layout cannot be located. I also tried specifying the file path:

@{
    Layout = $@"{System.IO.Directory.GetCurrentDirectory()}\EmailTemplates\_Layout.cshtml";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant