Fluentemail not working locally but working on server
- by sreginogemoh
My web app using Fluentemail to send emails. But there is strange thing happening, it is sending emails on server successfully, but locally I am getting such kind of errors:
RazorEngine.Templating.TemplateCompilationException: Unable to compile template. Check the Errors list for details.
at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context)
at RazorEngine.Templating.TemplateService.CreateTemplate(String template, Type modelType)
at RazorEngine.Templating.TemplateService.GetTemplate(String template, Type modelType, String name)
at RazorEngine.Templating.TemplateService.Parse[T](String template, T model, String name)
at RazorEngine.Razor.Parse[T](String template, T model, String name)
at FluentEmail.Email.UsingTemplateFromFile[T](String filename, T model, Boolean isHtml)
error CS2001: Source file 'C:\Windows\TEMP\5yn3eqdw.0.cs' could not be found}
Is there any way I can fix that?