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

3

9

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!

Shaikh answered 5/3, 2018 at 19:59 Comment(2)
Did you find any answer?Intervocalic
No i didn't find any answer..Shaikh
L
0

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.

Lightweight answered 16/7, 2019 at 11:18 Comment(1)
How to enable debugging in Azure for App Service in 2021 (Dockerized .NET 5 app)? I can't see this optionUnionize
A
0

Visual studio -> right click -> run administrator

Acidulent answered 26/1, 2021 at 8:59 Comment(1)
It's never a good idea to give admistrator rights to such tools. This is a massive security breach. There's always a better solution.Trenna
A
0

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.

Amalgamate answered 14/11, 2021 at 14:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.