jsreport-dotnet-example-webapp-master example code runtime error ...



  • I download the code run it on my office pc but has error page like P10_1606276483592_螢幕擷取畫面 2020-11-25 115415.png

    but run the same code in my house is good to go.
    can you guide me how to fix.
    TKS.



  • Hm, maybe an antivirus is blocking the chrome executable.

    Please try to change the line here.

    new LocalReporting().KeepAlive(false).UseBinary(JsReportBinary.GetBinary()).KillRunningJsReportProcesses().AsUtility().Create()
    

    Does it help?

    Could you try to install full jsreport and render a pdf there? It's typically easier to troubleshoot there the first.
    https://jsreport.net/on-prem



  • Hi, I Only use the antivirus software included in Win10 and install full jsreport on my computer and got some errors after execution
    like
    0_1606355427892_螢幕擷取畫面 2020-11-26 094421.png

    I followed the instructions to modify the code and the IDE informed me that there is no keepalive method0_1606355614165_螢幕擷取畫面 2020-11-26 095320.png



  • Hi, I Only use the antivirus software included in Win10 and install full jsreport on my computer and got some errors after execution
    like

    I see you run from the binary, could you try install the app through npm?
    https://jsreport.net/on-prem

    npm install jsreport-cli -g
    mkdir jsreportapp
    cd jsreportapp
    jsreport init
    jsreport configure
    jsreport start
    

    followed the instructions to modify the code and the IDE informed me that there is no keepalive method

    You have the wrong casing, see the KeepAlive method here. However, we won't be able to run it from .net if it doesn't run outside as well and it will be easier to troubleshoot outside.



  • I followed the instructions to install app and run same function and got the same problem.
    0_1606444119879_20201127.png

    I followed the instructions for local setting KeepAlive.
    I found that the execution location of KeepAlive is not the same as what you prompted.
    0_1606444326883_keepalive.png
    0_1606444340110_keepalive_ok.png
    run the app got the problem.
    0_1606444453632_App.png

    Please tell me how to troubleshoot the problem next



  • Thank you for the cooperation

    I found that the execution location of KeepAlive is not the same as what you prompted.

    Ups, I apologize, great you find it.

    I followed the instructions to install app and run same function and got the same problem.

    Please open console and go to this path (change the first part to the dir where you installed the app)
    c:\jsreportapp\node_modules\puppeteer\.local-chromium\win64-706915\chrome-win\

    and then try to run this
    chrome --headless --print-to-pdf https://www.chromestatus.com/

    this should create file output.pdf and chrome_debug.log in the same dir.
    Did it work? Can you share the content of the chrome_debug.log?


Log in to reply
 

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