本帖最后由 Crystal.Li 于 2021-11-10 10:49 编辑
五天前部署上去可以正常预览,但今天突然报错如下- {"status":"Failed","completed":false,"error":"Object reference not set to an instance of an object.","errorCode":null,"errorData":[],"errorType":"NullReferenceException","stackTrace":" at GrapeCity.ActiveReports.Drawing.Core.FontsFactory.BuildFontCollection(FontInfo fontInfo)\n at GrapeCity.ActiveReports.Rendering.Tools.FuncExtensions.<>c__DisplayClass0_0`2.<Memoize>b__0(T x)\n at GrapeCity.ActiveReports.Drawing.Core.FontsFactory.GetFonts(FontInfo fontInfo)\n at GrapeCity.ActiveReports.Drawing.Core.TextMetricsProvider.GetFontFamily(String fontName)\n at GrapeCity.ActiveReports.Core.Export.Html.Page.I.\uE00E.\uE000(IStyle style, StyleFlags flags, Func`2 getFontFamily)\n at GrapeCity.ActiveReports.Rendering.Tools.FuncExtensions.<>c__DisplayClass3_0`4.<Memoize>b__0(Tuple`3 p)\n at GrapeCity.ActiveReports.Rendering.Tools.FuncExtensions.<>c__DisplayClass0_0`2.<Memoize>b__0(T x)\n at GrapeCity.ActiveReports.Rendering.Tools.FuncExtensions.<>c__DisplayClass0_0`2.<Memoize>b__1(T x)\n at GrapeCity.ActiveReports.Rendering.Tools.FuncExtensions.<>c__DisplayClass3_0`4.<Memoize>b__2(T1 p1, T2 p2, T3 p3)\n at GrapeCity.ActiveReports.Core.Export.Html.Page.I.\uE00E.\uE001(IStyle style, ILayoutArea layoutArea, \uE010 context, RenderOptions renderFlags)\n at GrapeCity.ActiveReports.Core.Export.Html.Page.I.\uE00E.GetStyle(IStyle style, ILayoutArea layoutArea, \uE010 context, RenderOptions renderFlags)\n at GrapeCity.ActiveReports.Core.Export.Html.Page.I.\uE011.\uE003(ILayoutArea area, Single height, IStyle style, Boolean isMailMessageMode)\n at GrapeCity.ActiveReports.Export.Html.Page.Core.HtmlRendering.RenderHtmlPage(ILayoutPage page, IReport report, String evalText, \uE011 pageContext, Single& trackedHeight)\n at GrapeCity.ActiveReports.Export.Html.Page.Core.HtmlRendering.RenderImpl(IReport report, IMetadataDictionary metadataRoot, IEnumerable`1 pages, String evalText, \uE011 pageContext)\n at GrapeCity.ActiveReports.Export.Html.Page.Core.HtmlRendering.RenderInStreamingMode(IReport report, Func`2 getStream, HtmlSettings settings, CancellationToken cancel, Action`1 onComplete)\n at GrapeCity.ActiveReports.Web.Viewer.I.\uE030.RenderHtmlView(Object document, Func`2 getOutStreamFn, \uE014 exportSettings, Action onPageReady)\n at GrapeCity.ActiveReports.Web.Viewer.I.\uE00C.\uE005.\uE000(Task`1 task)"}
复制代码
但换了一台服务器后又可正常预览,请问是不是要在服务器上授权
|