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

encounter errors when use @Include in template #597

Open
nguyenngocthuan opened this issue Aug 3, 2023 · 0 comments
Open

encounter errors when use @Include in template #597

nguyenngocthuan opened this issue Aug 3, 2023 · 0 comments

Comments

@nguyenngocthuan
Copy link

RazorEngine.Templating.TemplateCompilationException: 'Errors while compiling a Template.
Please try the following to solve the situation:

  • If the problem is about missing/invalid references or multiple defines either try to load
    the missing references manually (in the compiling appdomain!) or
    Specify your references manually by providing your own IReferenceResolver implementation.
    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
    Currently all references have to be available as files!
  • If you get 'class' does not contain a definition for 'member':
    try another modelType (for example 'null' to make the model dynamic).
    NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    Or try to use static instead of anonymous/dynamic types.
    More details about the error:
  • error: (17, 18) The name 'inherits' does not exist in the current context
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