locked
ArgumentException: Font '?' cannot be found.] (Asp.net Reports) RRS feed

  • Question

  • User-75156155 posted

    Hi guys, i have a scary problem, i have used the rdl files of an already existing reports (sql reporting services)

    and succesfully converted them (to rdlc files) to asp.net local report (using reportviewer). and it works very good

    on the development server,...However, it does not work completely on test(cert) server:

    i actually can load the reports, except one which has graphics in it, on the other hand i can not export any of them

    (even those reports that can be loaded to a page), so please help me, the point is that i have to have a pretty much of a good idea

    before i go to those test server guys, i dont have access to test server myself.  i get 4 exception at once, and i get them when i want to export to pdf, not just the graphic one but also all other reports. Interesting point is that the same reports (i mean the original rdl reports on sql reportingservices)

    works wel on the same server (test server), that causes me to question whether it is about lack of some font on the server

    i appreciate any help or idea's, and thanks: 

     [ArgumentException: Font '?' cannot be found.]
       System.Drawing.FontFamily.GetGdipGenericSansSerif() +207809
       System.Drawing.FontFamily.CreateFontFamily(String name, FontCollection fontCollection) +116
       System.Drawing.FontFamily..ctor(String name, Boolean createDefaultOnFail) +13
       System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style) +77
       Microsoft.ReportingServices.Rendering.ImageRenderer.CanvasPDF.CreateFont(String family, Single size, FontStyle style) +54
       Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionBase.CreateDefaultFontPens() +33
       Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF..ctor(CreateAndRegisterStream createAndRegisterStreamCallback, Report report) +428
       Microsoft.ReportingServices.Rendering.ImageRenderer.PdfReport.RenderReport(Report report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStreamCallback, Int32 streamPageNumber) +32
       Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream) +29

    [ReportRenderingException: An error occurred during rendering of the report.]
       Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream) +70
       Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(IRenderingExtension renderer, CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback) +1124

    [WrapperReportRenderingException: An error occurred during rendering of the report.]
       Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(IRenderingExtension renderer, CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback) +1681
       Microsoft.Reporting.LocalService.RenderWithDataCache(PreviewItemContext itemContext, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, IRenderingExtension renderer, ReportProcessing repProc, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup) +1693
       Microsoft.Reporting.LocalService.Render(PreviewItemContext itemContext, Boolean allowInternalRenderers, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup, ProcessingMessageList& warnings) +227
       Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +235

    [LocalProcessingException: An error occurred during local report processing.]
       Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) +276
       Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) +189
       Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) +28
       Microsoft.Reporting.WebForms.LocalReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileNameExtension) +52
       Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +153
       Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +202
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

     

     

    Wednesday, December 12, 2007 4:45 AM

All replies

  • User-75156155 posted

    Hi guys,

    thanks to all poeple who took some time and read my post, i like to say that for a great

    part i found the solution, the problem was that the application didnt have reading right to

    the font folder of windows. we gave that right to it and it worked, at least the graphic and export to pdf works now very good, however, very strangely export to excel does not work,

    when i find a solution for that too, i will sure let you guys know.

     

    thanks,

    ceti 

     

    Tuesday, December 18, 2007 3:16 PM
  • User-75156155 posted

    Hi guys again,

    today when i started to work, for a reason that i dont know yet, the export to excel was working too..!!!

    so i guess i dont know why i didnt work yesterday and why it works today..

    thanks

    ceti 

     

     

    Wednesday, December 19, 2007 9:18 AM
  • User22599070 posted

    Reset Application pool will resolve the issue.. so skip all above comments... when we rebuild the dll file for import export might be get issue so need to reset application pool.

    ex. www.google.com is showing in application pool just stop and start the same by right clicking

    for this -> go to iis -> go to application pool -> select website -> right click on it -> select stop -> then select start

    Monday, September 3, 2018 2:03 PM