VSCode F5 .NET HotReload fail when app.UseHttpsRedirection() #1630
Labels
area-dotnet-debugging
Issues around .NET Debugging with console, ASP.NET, or Aspire
area-hotreload
Issues with Hot Reload experiences
bug
Something isn't working
Type: Bug
vscode F5 .NET HotReload fail when with code "app.UseHttpsRedirection();" in the Program.cs
create an empty mvc project:
dotnet new mvc -n mvcdemo1
vscode F5 debug, modify code, .NET HotReload fail, and the vscode DEBUG CONSOLE error msg is :
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware: Warning: Failed to determine the https port for redirect.
I removed a line of code "app.UseHttpsRedirection();" in the Program.cs
then vscode F5 debug .NET HotReload works ok.
This bug only happens in vscode.
When I use vs2022 with code "app.UseHttpsRedirection();" in the Program.cs F5 debug .NET HotReload works ok.
Extension version: 1.13.9
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: