ora
12/04/2024, 11:13 PMbash
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'.
at Umbraco.Extensions.UmbracoBuilderExtensions.AddWebServer(IUmbracoBuilder builder)
at Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(IUmbracoBuilder builder, Action`1 configureMvc)
at Program.<Main>$(String[] args) in C:\Users\Ora\source\repos\MMVUmbraco\Program.cs:line 11
at Program.<Main>(String[] args)
ora
12/04/2024, 11:13 PMSebastiaan
12/05/2024, 8:50 AMslamj1
12/26/2024, 4:25 AMSebastiaan
12/26/2024, 11:04 AMslamj1
12/26/2024, 5:39 PMSebastiaan
12/27/2024, 8:43 AMslamj1
12/27/2024, 9:57 AMslamj1
12/27/2024, 9:59 AMSebastiaan
12/27/2024, 10:00 AMJason
12/27/2024, 10:22 AMJason
12/27/2024, 10:22 AMJason
12/27/2024, 10:24 AMJason
12/27/2024, 10:33 AMcsharp
var syncIOFeature = HttpContext.Features.Get<IHttpBodyControlFeature>();
if (syncIOFeature != null)
{
syncIOFeature.AllowSynchronousIO = true;
}
https://github.com/dotnet/aspnetcore/issues/7644
https://stackoverflow.com/a/67632199Sebastiaan
01/03/2025, 11:18 AMSebastiaan
01/03/2025, 11:19 AMSebastiaan
01/03/2025, 11:25 AMJason
01/03/2025, 11:27 AMSebastiaan
01/03/2025, 11:28 AM#if WINDOWS
since then we'd need to compile and publish specific versions for windows and not-windows π¬Sebastiaan
01/03/2025, 11:36 AMcsharp
public static IUmbracoBuilder AddWebServer(this IUmbracoBuilder builder)
{
return builder;
}
And from a quick clicking around on most things in the backoffice, it "just" seems to work. I'll see if the Playwright tests still run, but it seems like we don't need to do a blanket allow rule.
Seeing as though the whole new management API is async I am guessing this was never really necessary for v14+.Sebastiaan
01/03/2025, 1:39 PMSebastiaan
01/03/2025, 3:45 PMAllowSynchronousIO
but that would make uSync not work on Linux I guess.Kevin Jump
01/03/2025, 4:07 PMSebastiaan
01/03/2025, 4:07 PMSebastiaan
01/03/2025, 4:08 PMKevin Jump
01/03/2025, 4:08 PMSebastiaan
01/03/2025, 4:09 PM