System.Security.SecurityException: Request failed exeception – Plesk
I am trying to generate PDF from HTML data using NReco.PdfGenerator. public static MemoryStream HtmlToPDFConvert(string html) { HtmlToPdfConverter pdfConverter = new HtmlToPdfConverter(); pdfConverter.Size = NReco.PdfGenerator.PageSize.A4; var pdfBytes = pdfConverter.GeneratePdf(html); var ms = new MemoryStream(pdfBytes); return ms; } Code is working…