Browser:
URL:
Summary Controller: Account
Action: Register
Exception: 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: (7, 7) The name 'Html' does not exist in the current context - error: (8, 8) The name 'Html' does not exist in the current context - error: (9, 11) The name 'Html' does not exist in the current context - error: (11, 8) The name 'Html' does not exist in the current context - error: (16, 12) The name 'Html' does not exist in the current context Temporary files of the compilation can be found in (please delete the folder): C:\Windows\TEMP\RazorEngine_zc5gywoh.tgq The template-file we tried to compile is:
Steps to reproduce error
Results Expected result
---------------
No error
Actual result
---------------
Notes/Attachments
URL:
Summary Controller: Account
Action: Register
Exception: 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: (7, 7) The name 'Html' does not exist in the current context - error: (8, 8) The name 'Html' does not exist in the current context - error: (9, 11) The name 'Html' does not exist in the current context - error: (11, 8) The name 'Html' does not exist in the current context - error: (16, 12) The name 'Html' does not exist in the current context Temporary files of the compilation can be found in (please delete the folder): C:\Windows\TEMP\RazorEngine_zc5gywoh.tgq The template-file we tried to compile is:
Steps to reproduce error
Results Expected result
---------------
No error
Actual result
---------------
Notes/Attachments
بدون پاسخ