Export rdlc fails with exception in Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession() RRS feed

  • Question

  • I am trying to print out a local report which seems to work fine on the development box but moving to production box causes the following error:

    An error occurred during local report processing.
       at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
       at Microsoft.Reporting.WinForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
       at Microsoft.Reporting.WinForms.LocalReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, CreateStreamCallback createStream, Warning[]& warnings)
       at IForce.PrinterServer.BusinessLogic.Printers.ReportPrinter.Export(LocalReport report)
       at IForce.PrinterServer.BusinessLogic.Printers.ReportPrinter.Setup(IAuditingService audit)
       at IForce.PrinterServer.BusinessLogic.WCF.PrintingFacade.ReportPrint(ReportPrintRequest request)

    The report executes custom code from a .NET 4.5 dll which I have created and this dll actually calls another third party dll (.NET 2.0), I have registered both in the GAC using drag and drop and for 4.0 dll the gacutil tool.

    The report needs to display a barcode so a custom call is made to my dll which does some processing before calling the third party dll to produce and image, which is finally displayed in my report. BTW This all works fine on my development machine.

    Third party dll used is zxing.dll

    The export method is quite simple

        private const string _deviceInfo = @"<DeviceInfo>
       private void Export(LocalReport report)
            Warning[] warnings;
            m_streams = new List<Stream>();            
            report.Render("Image", _deviceInfo, CreateStream, out warnings);                   
            foreach (var stream in m_streams) { stream.Position = 0; }

    Any ideas please?

    Tuesday, February 11, 2014 12:03 PM

All replies

  • I have the same problem, using the same third party assembly. I do not have any report code, just database fields.

    Everything works on developers machine, but not when deployed (non-administrator user with full control folder rights, release instead of debug build, 32-bit win 7 machine (same as development) )

    Please help.

    Friday, May 16, 2014 1:42 PM