Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • duanleou90 4 posts 34 karma points
    17 days ago
    duanleou90
    0

    Umbraco 11 Not Worked On Azure App Service For Linux

    Hi Everyone,

    As I understand, Umbraco 11 is basically a .NET 7 application. It means it is able to run on Linux.

    So I decided to deploy Umbraco 11 to Azure App Service For Linux.

    But it not worked. I got an error message like below from log stream

    2023-01-14T11:14:45.024580830Z Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Runtime.Caching.MemoryMonitor' threw an exception.

    2023-01-14T11:14:45.024636530Z ---> System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies.

    I also got the same issue with Umbraco 10.3.2.

    Anyone here know if Umbraco 11 or Umbraco 10 can work on Azure App Service For Linux ?

  • Conor Howe 30 posts 130 karma points
    1 week ago
    Conor Howe
    100

    When you are building / publishing your app are you targeting Linux?

    For example: dotnet build --runtime linux-x64

  • duanleou90 4 posts 34 karma points
    1 day ago
    duanleou90
    0

    Thanks Conor,

    Yes that is the root cause.

    To make the umbraco 10 or 11 run on Linux, we need to set --runtime linux-x64 when we publish the project

  • Conor Howe 30 posts 130 karma points
    1 day ago
    Conor Howe
    0

    Brilliant! Glad it's working for you now 😀

Please Sign in or register to post replies

Write your reply to:

Draft