Hot swap stops working when you enable HTTPS #1425

Closed
opened 2025-08-09 17:20:05 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @glangdonvt on 8/19/2016

Troubleshooting development mode
Your project worked like a dream. then I try to modify it to run in HTTPS--first editing the product properties to be HTTPS in Visual Studio, using the recommended https: port number.

Eventually I found this https://github.com/aspnet/Home/issues/1486, added the right extra references into the Startup.cs file, and now I can run https: at whatever port I want, but the hot swap recompilation stopped working.

I recreated the project from scratch. As soon as I uncomment the two commented lines below (Startup.cs), web site works fine, but hot module swap stops functioning.
.UseKestrel(options =>
{
var serverCertificate = LoadCertificate();
//options.UseHttps(serverCertificate);
})

            //.UseUrls("https://localhost:5001")
*Originally created by @glangdonvt on 8/19/2016* Troubleshooting development mode Your project worked like a dream. then I try to modify it to run in HTTPS--first editing the product properties to be HTTPS in Visual Studio, using the recommended https: port number. Eventually I found this https://github.com/aspnet/Home/issues/1486, added the right extra references into the Startup.cs file, and now I can run https: at whatever port I want, but the hot swap recompilation stopped working. I recreated the project from scratch. As soon as I uncomment the two commented lines below (Startup.cs), web site works fine, but hot module swap stops functioning. .UseKestrel(options => { var serverCertificate = LoadCertificate(); //options.UseHttps(serverCertificate); }) ``` //.UseUrls("https://localhost:5001") ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1425
No description provided.