JSReport.Binary upgrade to 2.5.0 or 2.6.1 stops generating PDF



  • Generating PDF Report using Razor View and MVC in VS2015.
    Upgrading the JSReport.Binary from 2.4.0 to 2.5.0/2.6.1 stops generating pdf.



  • Please share more details.



  • The exception details as below:
    [JsReportBinaryException: Error rendering report: A critical error occurred while trying to execute the render command: An error occurred while trying to start daemonized process: An error has occurred when trying to initialize jsreport (2). EBUSY: resource busy or locked, open 'C:\Windows\TEMP\jsreport\jsreport\compile\jsreport-2.5.0-BymsTkv0E\chrome\chrome.exe' (1). caused by error (2) -> meta = {"code":"EBUSY"}, stack = Error: at instance.init.then.catch ([eval]:66283:29) at tryCatcher (jsreportRuntime.js:158306:23) at Promise._settlePromiseFromHandler (jsreportRuntime.js:157998:31) at Promise._settlePromise (jsreportRuntime.js:158055:18) at Promise._settlePromise0 (jsreportRuntime.js:158100:10) at Promise._settlePromises (jsreportRuntime.js:158176:18) at _drainQueueStep (jsreportRuntime.js:39442:12) at _drainQueue (jsreportRuntime.js:39435:9) at Async._drainQueues (jsreportRuntime.js:39451:5) at Immediate.Async.drainQueues (jsreportRuntime.js:39321:14) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5)caused by error (1) -> meta = {"errno":-4082,"code":"EBUSY","syscall":"open","path":"C:\Windows\TEMP\jsreport\jsreport\compile\jsreport-2.5.0-BymsTkv0E\chrome\chrome.exe"}, stack = Error: (1). caused by error (1) -> meta = {"code":"EBUSY"}, stack = Error: at exports.NsSocket.socket.dataOnce ([eval]:66671:25) at exports.NsSocket.listener ([eval]:13402:10) at exports.NsSocket.EventEmitter.emit ([eval]:13490:22) at exports.NsSocket._onData ([eval]:94250:8) at Lazy.<anonymous> ([eval]:74361:13) at Lazy.<anonymous> ([eval]:74343:19) at emitTwo (events.js:126:13) at Lazy.emit (events.js:214:7) at Lazy.<anonymous> ([eval]:74344:22) at emitOne (events.js:116:13) at Lazy.emit (events.js:211:7) at yieldTo ([eval]:74451:18) at Function.<anonymous> ([eval]:74489:27) at Lazy.<anonymous> ([eval]:74457:21) at emitOne (events.js:116:13) at Lazy.emit (events.js:211:7)]
    jsreport.Local.Internal.<RenderAsync>d__11.MoveNext() +1732
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
    System.Runtime.CompilerServices.ConfiguredTaskAwaiter.GetResult() +31
    jsreport.MVC.<RenderReport>d__8.MoveNext() +696

    [AggregateException: One or more errors occurred.]
    System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +4757476
    jsreport.MVC.JsReportStream.Close() +444
    System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +771
    System.Web.HttpResponse.FilterOutput() +124
    System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +61
    System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +91



  • Please try to update to jsreport.Binary@2.6.2-beta2 and let me know if it helps. Thank you



  • Install-Package : Could not install package 'jsreport.Binary 2.6.2-beta2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not
    contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
    At line:1 char:1

    • Install-Package jsreport.Binary -Version 2.6.2-beta2
    •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand


  • You probably need to install a .net standard support to your vs2015
    Hope this helps
    https://stackoverflow.com/a/46804021/1660996

    or update to the vs2017 at least.



  • Upgraded to VS2017.
    Today got below error.
    <h2> <i>Error rendering report: A critical error occurred while trying to execute the render command (2). An error occurred while trying to start daemonized process: An error has occurred when trying to initialize jsreport (1). caused by error (2):-> stackError:    at onCriticalError (D:\snapshot\jsreport\node_modules\jsreport-cli\lib\commands\render.js:302:19)    at exports.handler (D:\snapshot\jsreport\node_modules\jsreport-cli\lib\commands\render.js:256:14)caused by error (1):-> meta = {"code":"ENOENT"}-> stackError: An error has occurred when trying to initialize jsreport    at exports.NsSocket.module.exports.socket.dataOnce (D:\snapshot\jsreport\node_modules\jsreport-cli\lib\keepAliveProcess.js:158:27)    at exports.NsSocket.listener (D:\snapshot\jsreport\node_modules\eventemitter2\lib\eventemitter2.js:251:10)    at exports.NsSocket.EventEmitter.emit (D:\snapshot\jsreport\node_modules\eventemitter2\lib\eventemitter2.js:339:22)    at exports.NsSocket._onData (D:\snapshot\jsreport\node_modules\nssocket\lib\nssocket.js:454:8)    at Lazy.<anonymous> (D:\snapshot\jsreport\node_modules\lazy\lazy.js:91:13)    at Lazy.<anonymous> (D:\snapshot\jsreport\node_modules\lazy\lazy.js:73:19)    at Lazy.emit (events.js:189:13)    at Lazy.<anonymous> (D:\snapshot\jsreport\node_modules\lazy\lazy.js:74:22)    at Lazy.emit (events.js:189:13)    at yieldTo (D:\snapshot\jsreport\node_modules\lazy\lazy.js:181:18)Remote Instance Error: Error:    at exports.initialize.instance.init.then.catch (D:\snapshot\jsreport\node_modules\jsreport-cli\lib\instanceHandler.js:31:29)Remote Instance Error: Error: ENOENT: no such file or directory, open 'C:\Users\rksharma\AppData\Local\Temp\jsreport\compile\jsreport-2.6.2-beta2-S1br9LNpr\chrome.zip'</i> </h2></span>




Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.