visual studio was unable to create a secure connection azurewebsites:4020 authentication failed

3.8k Views Asked by At

enter image description here

I get this pop and error for authencation failure azurewebsites.net:4020 error. Due to this i am unable to log in to my website. I don't know what to do and how to handle this.

Kindly suggest and help me

Thanks!

3

There are 3 best solutions below

1
On

Visual studio -> right click -> run administrator

1
On

After searching various other solutions, what did work in the end was installing the "Azure Development Workload" of Visual Studio (using the Visual Studio Installer), then with your project loaded in VS, open "Server Explorer", expand the Azure tab and simply navigate to your web app, right-click and Attach debugger.

enter image description here

Check that you have enabled debugging in Azure for the App.
This bypasses the remote debugging, and its security credentials.

0
On

For me, what fixed it, was changing the site URL from http to https.

enter image description here

Then I could attach the debugger:

enter image description here

enter image description here

All in VS 2022.