.Net Core WebApp example, adding Docker support breaks the app



  • Downloaded the example webapp and it runs great but after adding Docker support (linux) with no other changes, going to any page throws:

    JsReportBinaryException: Error rendering report:
    jsreport.Local.Internal.LocalUtilityReportingService+<RenderAsync>d__10.MoveNext()

    full stack below. Thanks!

    jsreport.Local.Internal.LocalUtilityReportingService+<RenderAsync>d__10.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    System.Runtime.CompilerServices.TaskAwaiter.GetResult()
    jsreport.AspNetCore.JsReportMiddleware+<Invoke>d__3.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeNextResourceFilter>d__22.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
    Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
    Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeFilterPipelineAsync>d__17.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeAsync>d__15.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Microsoft.AspNetCore.Builder.RouterMiddleware+<Invoke>d__4.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()



  • Also, the menu page loads. From there though, running any report throws the error



  • We didn't add the support for linux yet. You can subscribe here to get notified when it is done
    https://github.com/jsreport/jsreport-dotnet/issues/1



  • There is now beta version available
    https://www.nuget.org/packages/jsreport.Binary.Linux/1.8.2-beta1

    You can use it the same way as the windows binary. Just make sure you have libfontconfig lib on your linux target. In the default docker your can install it using

    RUN apt-get update && \   
        apt-get install -y libfontconfig1
    

Log in to reply
 

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