Prem Murmu
Prem Murmu

Reputation: 126

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

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!

Upvotes: 9

Views: 4245

Answers (3)

Mr Patience
Mr Patience

Reputation: 2200

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.

Upvotes: 0

Sinan Dogan
Sinan Dogan

Reputation: 115

Visual studio -> right click -> run administrator

Upvotes: 0

TomFp
TomFp

Reputation: 567

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.

Upvotes: 0

Related Questions