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 ?
We have been running Umbraco 10 on Linux AWS fargate containers for a year or so and it works fine. Just starting to upgrade some Azure Umbraco projects (to 13) and putting them on Linux web apps using the Ubuntu 22.04 build pipeline. We are running our Dev version of the new sites on a B1, which I think is the lowest spec you can get in Linux web apps, and while not super snappy they are more than adequate for our work load.
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 ?
When you are building / publishing your app are you targeting Linux?
For example: dotnet build --runtime linux-x64
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
Brilliant! Glad it's working for you now 😀
It's been a few years and versions since I've used Umbraco. I'm curious why the documentation -- particularly https://docs.umbraco.com/umbraco-cms/v/11.latest/fundamentals/setup/requirements -- does not suggest Linux except for local development.
We have been running Umbraco 10 on Linux AWS fargate containers for a year or so and it works fine. Just starting to upgrade some Azure Umbraco projects (to 13) and putting them on Linux web apps using the Ubuntu 22.04 build pipeline. We are running our Dev version of the new sites on a B1, which I think is the lowest spec you can get in Linux web apps, and while not super snappy they are more than adequate for our work load.
is working on a reply...