Publish ASP.NET Core 2.0 on IIS



  • Hello,
    I tried to generate pdf report by following this project
    https://github.com/jsreport/jsreport-dotnet-example-webapp. The program work
    fine in my PC but there is problem after published the project on IIS. There was an
    error 404 after I clicked print button (event would go directly to Report
    ActionResult). Do I have to install any others extension or run time? Do I have to config ConfigureServices

    public void ConfigureServices(IServiceCollection services)
    {
    services.AddMvc();
    services.AddJsReport(new
    LocalReporting().UseBinary(JsReportBinary.GetBinary()).AsUtility().Create());
    }

    Thanks in advance.


  • administrators

    hi! hmm have you tried some of the recommendations posted here? (changing the application pool identity of your app to LocalSystem)



  • Dear bjrmatos,
    I tried to followed this post but I could not find application pool identity option in IIS application. T__T

    Thanks


  • administrators

    first you need to make sure in which application pool your app in running, to do that select your app and do a right click to find the advanced settings options.

    0_1515684409001_Captura de pantalla 2018-01-11 a las 10.25.35 a.m..png

    you will find the application pool that you app is using there (for my case, it is DefaultAppPool)

    0_1515684472719_Captura de pantalla 2018-01-11 a las 10.27.07 a.m..png

    close that option window and then find your application pool in the "Application Pools" option and select Advanced settings.

    0_1515685321970_Captura de pantalla 2018-01-11 a las 10.41.38 a.m..png

    in there, find the Identity option and select "LocalSystem"

    0_1515685393208_Captura de pantalla 2018-01-11 a las 10.43.03 a.m..png

    0_1515685409648_Captura de pantalla 2018-01-11 a las 10.43.21 a.m..png


Log in to reply
 

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