Posted 16 May 2019, 9:02 pm EST
Hi I have a webforms app using C1Report which all works fine on my dev machine. Just deployed it to Azure App Service and all the reports generate a runtime error which appears to be something to do with fonts. Here is the stack trace:
[ArgumentException: Parameter is not valid.] System.Drawing.Graphics.GetHdc() +1147821 C1.Util.#e2.#6x(FontSubSet owner, String tableName) +149 C1.Util.FontSubSet.GetFontTableStream(String name) +5 C1.Util.FontSubSet.#vpd() +44 C1.Util.FontSubSet.Init() +13 C1.Util.FontSubSet.GetFontSubSet(FontKey fk) +188 C1.C1Preview.C1PrintDocument.#o0c(String s, String fontName, Boolean fontBold, Boolean fontItalic, Boolean updateDocumentFonts) +104 C1.C1Preview.C1PrintDocument.#q0c(String s, String fontName, Boolean fontBold, Boolean fontItalic, Boolean updateDocumentFonts) +68 C1.C1Preview.Util.C1TextBase.AddText(C1PrintDocument document, String s, Style style, String fontName, Int32 fontGdiCharSet, C1Hyperlink hyperlink, C1LinkTarget linkTarget, Boolean drawing) +381 C1.C1Report.Field.#xtd(C1PrintDocument doc, String str, Int32 startIndex) +404 C1.C1Report.Field.#Vqd(Layout layout, String str, Image image, BarCodeEnum barCode, ShapeBase shape) +475 C1.C1Report.Field.Render(Layout layout, Double x, Double y, Boolean measure) +885 C1.C1Report.Field.#Gtd() +203 C1.C1Report.Section.Calculate(Boolean subreportsOnly) +488 C1.C1Report.Section.Render(Boolean keepPage, Group ownerGroup) +557 C1.C1Report.Layout.StartDoc() +573 C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument) +219 C1.C1Report.C1Report.#avd() +34 C1.C1Report.C1Report.#8ud() +21 C1.C1Report.C1Report.Render() +4 Visicort.VIMS.UI.ReportViewer.Page_Load(Object sender, EventArgs e) +173 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +95 System.Web.UI.Control.LoadRecursive() +59 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
Any help fixing this would be much appreciated. Thanks Jonathan