Umbraco 15, deploy on Ubuntu 24, missing Microsoft...
# help-with-umbraco
b
This is error when upgraded site from v14 to v 15 upgrading: > Nov 18 17:08:37 vmi1813232.contaboserver.net systemd[1]: Started greencode.service - Green Code service. > Nov 18 17:08:40 server.net greencode[18474]: Unhandled exception. System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.IISServerOptions' from assembly 'Microsoft.AspNetCore.Server.IIS, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddWebServer(IUmbracoBuilder builder) > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(IUmbracoBuilder builder, Action`1 configureMvc) > Nov 18 17:08:40 server.net greencode[18474]: at Program.$(String[] args) in /home/github-runner/actions-runner/_work/GreenCode/GreenCode/GreenCode/Program.cs:line 17 Program.cs, line 17:
Copy code
builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddDeliveryApi()
    .AddComposers()
    .Build();
Is there some dependency that is forcing us to use IIS everywhere?
s
I got the same after creating a new v15 project on Ubuntu 24.10 with the
dotnet-sdk-9.0
package from the official APT repositories. But it is working fine for me on Ubuntu 24.04 (LTS), and a manual install of .NET 9. The dependency on
IISServerOptions
looks to be in this method (which has a couple suspicious TODOs): https://github.com/umbraco/Umbraco-CMS/blob/a8705bef785d576d470900464b154b4fbe8a0bc0/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs#L328
b
Huh, I can't just downgrade Ubuntu... can it be accomplished just by installing net9 manually @Steven (he/him)
s
It's not something I tried, but could be worth a shot
b
@Steven (he/him) the manual installation works on 24.10!
s
Good to know!
q
Appreciate you chaps! I opened a thread on the umbraco forums asking about this same issue. The manual approach does work, so I updated with a discussion/walkthrough on how to fix. Should be easier indexed by google and bing there. https://our.umbraco.com/forum/using-umbraco-and-getting-started/115012-cut-by-the-bleeding-edge-has-anyone-managed-to-get-u15-stood-up-on-linux
s
That's awesome!
o
Has this issue been reported to dotnet/Microsoft?
b
@ora where can we do that?
o
At a guess it should be a GitHub issue at https://github.com/dotnet/sdk
109 Views