Open SwethaYamsani opened 5 years ago
Some info here https://forum.jsreport.net/topic/692/httpcontext-jsreportfeature-returns-null/4
I welcome would welcome a contribution to this topic.
I did a just simple razor pages .net core application and was able to get pdf using the above code. I just has two string fileds in the page. But when it comes to my actual application, i get the above error. Does that mean jsreport works for Razor pages ?
I get this error in actual application...
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, seems like there is already a server running in port: 5488 (2). listen EADDRINUSE :::5488 (1). caused by error (2) -> meta = {"code":"EADDRINUSE"}, 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 = {"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":5488}, stack = Error: at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at Server.setupListenHandle [as _listen2] (net.js:1367:14) at listenInCluster (net.js:1408:12) at Server.listen (net.js:1492:7) at Promise (jsreportRuntime.js:182856:12) at Promise._execute (jsreportRuntime.js:40237:9) at Promise._resolveFromExecutor (jsreportRuntime.js:157969:18) at new Promise (jsreportRuntime.js:157565:10) at startAsync (jsreportRuntime.js:182850:10) at steps.push (jsreportRuntime.js:182884:14) at Object.start (jsreportRuntime.js:182958:13) at Object.reporter.initializeListeners.add (jsreportRuntime.js:183141:30) at
I get an object reference not set to instance of an object error at below code. HttpContext.JsReportFeature().Recipe(Recipe.ChromePdf); return Page();
I am using jsreport to generate a pdf of a razor page not view. Does jsreport works with razor page in asp.net core application?