Run ASP.NET Core service on Libreelec

  • Hi all!

    SYSTEM:

    Libreelec nightly-20220401-aa8df56 (H6.arm)

    ASP,NET Runtime 6.0.1 addon

    Trying to run a service with ASP.NET Core + Angular + MariaDB application. If I run it in the terminal via Putty, everything works fine. The site opens outside the network.

    I.e. the application works fine.

    Code
    dotnet exec --runtimeconfig RadAlarm.Web.runtimeconfig.json --depsfile RadAlarm.Web.deps.json RadA
    larm.Web.dll --urls=http://192.168.31.235:8088/

    But when I close the terminal and closes the application session so I need to install the application as a service.

    Found a sample service configuration in documentation and finalized it:

    the service will not start with this configuration

    The following error is written in the logs:

    Have any idea how to fix this ?

    Thx before for any help!


    Ugh...

    сlose this thread

    Problem solved

    added a line

    Code
    Environment=DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

    Hope this help somebody too )

    Edited once, last by ilchenko: Merged a post created by ilchenko into this post. (June 2, 2022 at 1:36 PM).