Closed Mike-E-angelo closed 12 months ago
Upon compiling my application for self-contained it appears that some package references were being downgraded:
..\home\Starbeam\Starbeam.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: System.Runtime.Handles from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.
Starbeam -> Serilog.Enrichers.ExceptionStackTraceHash 1.3.0 -> System.Diagnostics.StackTrace 4.0.1 -> System.IO.FileSystem 4.0.1 -> runtime.win.System.IO.FileSystem 4.3.0 -> System.Runtime.Handles (>= 4.3.0)
Starbeam -> Serilog.Enrichers.ExceptionStackTraceHash 1.3.0 -> System.Diagnostics.StackTrace 4.0.1 -> System.IO.FileSystem 4.0.1 -> System.Runtime.Handles (>= 4.0.1)
..\home\Starbeam.Presentation\Starbeam.Presentation.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version.
Starbeam.Presentation -> Starbeam -> Serilog.Enrichers.ExceptionStackTraceHash 1.3.0 -> System.Diagnostics.StackTrace 4.0.1 -> System.IO.FileSystem 4.0.1 -> runtime.win.System.IO.FileSystem 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0)
Starbeam.Presentation -> Starbeam -> Serilog.Enrichers.ExceptionStackTraceHash 1.3.0 -> System.Diagnostics.StackTrace 4.0.1 -> System.IO.FileSystem 4.0.1 -> System.IO.FileSystem.Primitives (>= 4.0.1)
Following the guidance and applying direct references addressed one of the issues. However, setting the slot's General Settings -> .NET version
to .NET 8 (LTS) (Early Access)
still produced the 503. Setting this value to .NET 7 (STS)
removed the 503 and the application now runs as expected.
I am not sure what is causing the 503 and neither does Azure Support. They are looking into it. It appears to be a file not found exception that is not generating a lot of details for them.
As I am unblocked I am closing this issue.
Repro steps.
Assigning an AppService to .NET8 results in 503 unavailable errors. No errors are thrown in event log.
Project structures.
N/A
The log/error given by the failure.
None are provided, only that the service is unavailable. I have a priority B ticket out to Azure Support, but they have taken a week to simply find my instance π, so am branching out here for potential further assistance. I feel this is a possible infrastructure bug with the new .NET8 bits.
Debug your Azure website remotely.
Mention any other details that might be useful.
Note that I have a testing environment where this does not occur and .NET8 runs as expected. In the slot above, I have attempted to upgrade the code to .NET8 as well as reverting to .NET7, but both result in 503 errors if .NET8 is applied in Configuration -> General Settings
You're welcome. π Thank you for all your efforts out there π