PDFsharp generates blank page in Azure, but works locally
This works in an ASP.NET MVC application when run locally, but not when deployed on Azure: Document doc = new Document(); Section section = doc.AddSection(); section.AddParagraph("Some text to go into a PDF"); PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(false, PdfFontEmbedding.Always); pdfRenderer.Document = doc; pdfRenderer.RenderDocument(); System.IO.MemoryStream stream = new System.IO.MemoryStream(); pdfRenderer.PdfDocument.Save(stream, false); Byte[] documentBytes = stream.ToArray(); return File(documentBytes, "application/pdf"); Locally, I get a nice PDF. On Azure, I get a