Antaris / RazorEngine

Open source templating engine based on Microsoft's Razor parsing engine
http://antaris.github.io/RazorEngine
Other
2.13k stars 578 forks source link

RazorEngine.Templating.TemplateCompilationException: error: (0, 0) An expression is too long or complex to compile #599

Open alexandru-vicol opened 7 months ago

alexandru-vicol commented 7 months ago

I used first Razor.Compile and then Razor.Run, but still I get this error while compiling: An expression is too long or complex to compile, and is not pointing me where exactly is that expression in my .cshtml file. Any ideas to find which expression is? also, I could not manage to debug the .cshtml file, telling me the breakpoint cannot be hit.