Estou tentando gerar um PDF com o Rotativa, consigo normalmente no Local, mas quando publico exibe error 404.
Já adicionei as DLLs no projeto.
public IActionResult ConfirmaReimpressaoCertificadoPDF(Certidao certificado)
{
var usuarioBase = certificadoRepository.GetCertificado(certificado.RG);
if (usuarioBase == null)
{
}
return new ViewAsPdf("ConfirmaReimpressaoCertificadoPDF", usuarioBase)
{
FileName = "Certidao.pdf"
};
}
O StartUp:
RotativaConfiguration.Setup(env, "..\\wwwroot\\Rotativa\\");
Exite um Warn e um ERRO do LOG:
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1] An unhandled exception has occurred while executing the request. System.Exception at Rotativa.AspNetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html, String wkhtmlExe) at Rotativa.AspNetCore.WkhtmltopdfDriver.ConvertHtml(String wkhtmltopdfPath, String switches, String html)