Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode F5 .NET HotReload fail when app.UseHttpsRedirection() #1630

Open
zhoucheng3 opened this issue Nov 24, 2024 · 0 comments
Open

VSCode F5 .NET HotReload fail when app.UseHttpsRedirection() #1630

zhoucheng3 opened this issue Nov 24, 2024 · 0 comments
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

Comments

@zhoucheng3
Copy link

Type: Bug

vscode F5 .NET HotReload fail when with code "app.UseHttpsRedirection();" in the Program.cs

  1. create an empty mvc project:
    dotnet new mvc -n mvcdemo1

  2. 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.

  1. I removed a line of code "app.UseHttpsRedirection();" in the Program.cs
    then vscode F5 debug .NET HotReload works ok.

  2. 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
Item Value
CPUs Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (6 x 3696)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 31.84GB (20.66GB free)
Process Argv D:\demo\dn9mvc --crash-reporter-id ca2cdba5-cc7e-4726-831b-385cbdf8e203
Screen Reader no
VM 33%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@webreidi webreidi added bug Something isn't working area-dotnet-debugging Issues around .NET Debugging with console, ASP.NET, or Aspire area-hotreload Issues with Hot Reload experiences labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants