docintelapp / DocIntel

Open Source Platform for storing, organizing, and searching documents related to cyber threats
https://docintel.org
Other
154 stars 24 forks source link

Newsletter not working: cannot compile HTML #73

Closed ancailliau closed 1 year ago

ancailliau commented 1 year ago
See CompilationErrors for detailed information
)
2023-06-23 06:36:53.4435 [ERROR] [DocIntel.Core.Services.DocIntelHostedService] RazorLight.Compilation.TemplateCompilationException: Failed to compile generated Razor template:
- (27:13) The name 'Html' does not exist in the current context

See CompilationErrors for detailed information

   at RazorLight.Compilation.RoslynCompilationService.CompileAndEmit(IGeneratedRazorTemplate razorTemplate)
   at RazorLight.Compilation.RazorTemplateCompiler.CompileAndEmitAsync(RazorLightProjectItem projectItem)
   at RazorLight.Compilation.RazorTemplateCompiler.OnCacheMissAsync(String templateKey)
   at RazorLight.Compilation.RazorTemplateCompiler.OnCacheMissAsync(String templateKey)
   at RazorLight.EngineHandler.CompileTemplateAsync(String key)
   at RazorLight.TemplateRenderer.<>c__DisplayClass6_0.<<RenderPageCoreAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at RazorLight.TemplatePage.IncludeAsync(String key, Object model)
   at RazorLight.CompiledTemplates.GeneratedTemplate.ExecuteAsync() in /Emails/Welcome.cshtml:line 27
   at RazorLight.TemplateRenderer.RenderPageCoreAsync(ITemplatePage page, PageContext context)
   at RazorLight.TemplateRenderer.RenderPageAsync(ITemplatePage page, PageContext context, Boolean invokeViewStarts)
   at RazorLight.TemplateRenderer.RenderAsync(ITemplatePage page)
   at RazorLight.EngineHandler.RenderTemplateAsync[T](ITemplatePage templatePage, T model, TextWriter textWriter, ExpandoObject viewBag)
   at RazorLight.EngineHandler.RenderTemplateAsync[T](ITemplatePage templatePage, T model, ExpandoObject viewBag)
   at RazorLight.EngineHandler.CompileRenderAsync[T](String key, T model, ExpandoObject viewBag)
   at DocIntel.Services.Newsletters.NewsletterSender.RunAsync() in /src/DocIntel.Services.Newsletters/NewsletterSender.cs:line 128
   at DocIntel.Services.Newsletters.EmailNotificationHostedService.Run(CancellationToken cancellationToken) in /src/DocIntel.Services.Newsletters/EmailNotificationHostedService.cs:line 44
   at DocIntel.Core.Services.DocIntelHostedService.<>c__DisplayClass6_0.<<StartAsync>b__1>d.MoveNext() in /src/DocIntel.Core/Services/DocIntelHostedService.cs:line 65