question

BobKing-2636 avatar image
0 Votes"
BobKing-2636 asked lextm commented

Error debugging web app IISExpress in VS 2019 "The connection for this site is not secure"

I'm getting an intermittent (but most of the time) error when trying to debug a web app with local IIS (Edge), and can't find any info on what might be happening.

I'm a local admin, running VS 2019 as Admin on Win 10, and have verified that my Virtual Directory settings are correct. This is a shared project running OK for others, so I know it has to be something local.

Here's the error:

136260-screenshot-2021-09-29-110725.png



Any help or ideas would be appreciated.

vs-debuggingwindows-server-iis-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Open the solution file in Jexus Manager as a new IIS Express server, and then run SSL Diagnostics on your site to see what's wrong, https://docs.jexusmanager.com/tutorials/ssl-diagnostics.html

0 Votes 0 ·
KARTIKISOP avatar image
0 Votes"
KARTIKISOP answered

Maybe your internet is not set to the right settings.
That happened to me as well. But had to change my network settings.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SamWu-MSFT avatar image
1 Vote"
SamWu-MSFT answered

Hi @BobKing-2636

You can try to create new Virtual Directory:

  1. Open visual studio, select your project.

  2. right-click on the project and select properties.

  3. click Create Virtual Directory.

  4. make sure there no such setting in your web.conifg file like below:

136458-4.png


136389-3.png



If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



4.png (8.4 KiB)
3.png (24.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.